Skip to content

Commit 0183458

Browse files
committed
[build-script-helper] Remove unneeded flags for Android
Removing the definition of `_GNU_SOURCE` is no longer needed since swiftlang/swift-tools-support-core#500 made sure the right `strerror_r()` is used.
1 parent e474354 commit 0183458

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Utilities/build-script-helper.py

-3
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,6 @@ def get_swiftpm_options(swift_exec: str, args: argparse.Namespace, suppress_verb
136136
if '-android' in build_target:
137137
swiftpm_args += [
138138
'-Xlinker', '-rpath', '-Xlinker', '$ORIGIN/../lib/swift/android',
139-
# SwiftPM will otherwise try to compile against GNU strerror_r on
140-
# Android and fail.
141-
'-Xswiftc', '-Xcc', '-Xswiftc', '-U_GNU_SOURCE',
142139
]
143140
elif not build_os.startswith('macosx'):
144141
# Library rpath for swift, dispatch, Foundation, etc. when installing

0 commit comments

Comments
 (0)