File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -722,10 +722,15 @@ endfunction()
722
722
# This is a temporary workaround until it's possible to compile libswift with
723
723
# cmake's builtin swift support.
724
724
function(add_libswift name)
725
+ set(libswift_compile_options
726
+ " -target " " x86_64-apple-macosx10.15 " # TODO: this is a hack until I figure out where the target is being set.
727
+ " -Xfrontend " " -validate-tbd-against-ir=none "
728
+ " -Xfrontend " " -enable-cxx-interop ")
729
+
725
730
if(CMAKE_BUILD_TYPE STREQUAL Debug)
726
- set( libswift_compile_options " -g ")
731
+ list(APPEND libswift_compile_options " -g ")
727
732
else()
728
- set( libswift_compile_options " -O " " -cross-module-optimization ")
733
+ list(APPEND libswift_compile_options " -O " " -cross-module-optimization ")
729
734
endif()
730
735
731
736
set(build_dir ${CMAKE_CURRENT_BINARY_DIR} )
You can’t perform that action at this time.
0 commit comments