Skip to content

Commit 0966c7b

Browse files
committed
[CMake] Fix SWIFT_TARGET redefinition warning
`HeaderDependencies.cpp` is (as in the name) C++, which means it receives `-DSWIFT_TARGET` from the top level `add_definitions`. No need to add it again.
1 parent 80e86dd commit 0966c7b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

SwiftCompilerSources/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,6 @@ else()
272272
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/HeaderDependencies.cpp.tmp"
273273
"
274274
#define COMPILED_WITH_SWIFT
275-
#define SWIFT_TARGET
276275
277276
#include \"Basic/BasicBridging.h\"
278277
#include \"SIL/SILBridging.h\"

0 commit comments

Comments
 (0)