Skip to content

Commit 40da89c

Browse files
author
Josh Learn
committed
Undefine IB macros when building libswift
1 parent 08d902f commit 40da89c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,8 @@ function(add_libswift name)
730730
731731
set(libswift_compile_options
732732
"-Xfrontend" "-validate-tbd-against-ir=none"
733-
"-Xfrontend" "-enable-cxx-interop")
733+
"-Xfrontend" "-enable-cxx-interop"
734+
"-Xcc" "-UIBOutlet" "-Xcc" "-UIBAction" "-Xcc" "-UIBInspectable")
734735
735736
if(CMAKE_BUILD_TYPE STREQUAL Debug)
736737
list(APPEND libswift_compile_options "-g")

0 commit comments

Comments
 (0)