Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VS: Restore support for CUDA with no optimization flags
Since commit 67de5b7 (VS: Suppress MSBuild default settings affected by UseDebugLibraries, 2024-02-13, v3.30.0-rc1~538^2~1) we generate an empty `Optimization` element for the host compiler when there are no C or C++ optimization flags enabled. The CUDA Toolkit Visual Studio integration fails with an error if an empty string is inherited from the host compiler's `Optimization` element. If no CUDA optimization flags are specified, write an explicit empty `Optimization` element for the CUDA compiler too. Fixes: #26144
- Loading branch information