Skip to content

Commit d8f0f0c

Browse files
committed
Add linkage to swiftSwiftOnoneSupport
1 parent 557c7e5 commit d8f0f0c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
foundation.CFLAGS = '-DDEPLOYMENT_TARGET_MACOSX '
2424
foundation.LDFLAGS = '-licucore -twolevel_namespace -Wl,-alias_list,CoreFoundation/Base.subproj/DarwinSymbolAliases -sectcreate __UNICODE __csbitmaps CoreFoundation/CharacterSets/CFCharacterSetBitmaps.bitmap -sectcreate __UNICODE __properties CoreFoundation/CharacterSets/CFUniCharPropertyDatabase.data -sectcreate __UNICODE __data CoreFoundation/CharacterSets/CFUnicodeData-L.mapping -segprot __UNICODE r r '
2525

26+
if Configuration.current.build_mode == Configuration.Debug:
27+
foundation.LDFLAGS += '-lswiftSwiftOnoneSupport'
28+
2629
# For now, we do not distinguish between public and private headers (they are all private to Foundation)
2730
# These are really part of CF, which should ultimately be a separate target
2831
foundation.ROOT_HEADERS_FOLDER_PATH = "${PREFIX}/lib/swift"

0 commit comments

Comments
 (0)