Skip to content

Commit 6509a2f

Browse files
authored
Merge pull request #1139 from jiezzhang/jiezzhang/fix_win_dbg_options
Remove /debug and /INCREMENT for clang-cl under CMAKE debug configuration
2 parents 58bab99 + 099d324 commit 6509a2f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmake/FindDPCPP.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ else()
77
# Remove /machine: option which is not supported by clang-cl
88
string(REPLACE "/machine:x64" "" CMAKE_EXE_LINKER_FLAGS
99
"${CMAKE_EXE_LINKER_FLAGS}")
10+
# Remove /debug: option which is not supported by clang-cl
11+
string(REPLACE "/debug" "" CMAKE_EXE_LINKER_FLAGS_DEBUG
12+
"${CMAKE_EXE_LINKER_FLAGS_DEBUG}")
13+
# Remove /INCREMENTAL: option which is not supported by clang-cl
14+
string(REPLACE "/INCREMENTAL" "" CMAKE_EXE_LINKER_FLAGS_DEBUG
15+
"${CMAKE_EXE_LINKER_FLAGS_DEBUG}")
1016
# Remove /subsystem option which is not supported by clang-cl
1117
string(REPLACE "/subsystem:console" "" CMAKE_CREATE_CONSOLE_EXE
1218
"${CMAKE_CREATE_CONSOLE_EXE}")

0 commit comments

Comments
 (0)