File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ function(add_swift_compiler_modules_library name)
103
103
"-Xfrontend" "-enable-experimental-cxx-interop"
104
104
"-Xfrontend" "-disable-target-os-checking"
105
105
"-Xcc" "-std=c++17"
106
- "-Xcc" "-DCOMPILED_WITH_SWIFT"
106
+ "-Xcc" "-DCOMPILED_WITH_SWIFT" "-Xcc" "-DSWIFT_TARGET"
107
107
"-Xcc" "-UIBOutlet" "-Xcc" "-UIBAction" "-Xcc" "-UIBInspectable" )
108
108
if (NOT BOOTSTRAPPING_MODE STREQUAL "HOSTTOOLS" )
109
109
list (APPEND swift_compile_options "-Xfrontend" "-disable-implicit-string-processing-module-import" )
@@ -271,6 +271,7 @@ else()
271
271
file (WRITE "${CMAKE_CURRENT_BINARY_DIR} /HeaderDependencies.cpp.tmp"
272
272
"
273
273
#define COMPILED_WITH_SWIFT
274
+ #define SWIFT_TARGET
274
275
275
276
#include \" Basic/BasicBridging.h\"
276
277
#include \" SIL/SILBridging.h\"
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ endif()
102
102
set (compile_options
103
103
${c_include_paths_args}
104
104
"SHELL: ${cxx_interop_flag} "
105
- "SHELL: -Xcc -std=c++17 -Xcc -DCOMPILED_WITH_SWIFT"
105
+ "SHELL: -Xcc -std=c++17 -Xcc -DCOMPILED_WITH_SWIFT -Xcc -DSWIFT_TARGET "
106
106
107
107
# FIXME: Needed to work around an availability issue with CxxStdlib
108
108
"SHELL: -Xfrontend -disable-target-os-checking"
You can’t perform that action at this time.
0 commit comments