Skip to content

Commit e9ca0c6

Browse files
authored
Android: remove build flags that are no longer needed (#1860)
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 3d8dfd5 commit e9ca0c6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Utilities/build-script-helper.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,6 @@ def get_swiftpm_options(args):
104104
if '-android' in args.build_target:
105105
swiftpm_args += [
106106
'-Xlinker', '-rpath', '-Xlinker', '$ORIGIN/../lib/swift/android',
107-
# SwiftPM will otherwise try to compile against GNU strerror_r on
108-
# Android and fail.
109-
'-Xswiftc', '-Xcc', '-Xswiftc', '-U_GNU_SOURCE',
110107
]
111108
else:
112109
# Library rpath for swift, dispatch, Foundation, etc. when installing

0 commit comments

Comments
 (0)