浏览代码

CUDA: Do not use non-existent -Os flag for nvcc

Fix the CUDA MinSizeRel configuration flags to avoid using the `-Os`
flag that nvcc does not support.
Brad King 8 年之前
父节点
当前提交
59ed323d46
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Modules/Compiler/NVIDIA-CUDA.cmake

+ 1 - 1
Modules/Compiler/NVIDIA-CUDA.cmake

@@ -13,7 +13,7 @@ set(CMAKE_INCLUDE_SYSTEM_FLAG_CUDA -isystem=)
 
 string(APPEND CMAKE_CUDA_FLAGS_INIT " ")
 string(APPEND CMAKE_CUDA_FLAGS_DEBUG_INIT " -g")
-string(APPEND CMAKE_CUDA_FLAGS_MINSIZEREL_INIT " -Os -DNDEBUG")
+string(APPEND CMAKE_CUDA_FLAGS_MINSIZEREL_INIT " -O1 -DNDEBUG")
 string(APPEND CMAKE_CUDA_FLAGS_RELEASE_INIT " -O3 -DNDEBUG")
 string(APPEND CMAKE_CUDA_FLAGS_RELWITHDEBINFO_INIT " -O2 -g -DNDEBUG")