mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[android] Link against math library for Bionic.
The Bionic modulemap was missing the autolinking information against libm, so using the module math functions might have hit undefined symbols (it was happening in TestDecimal in Foundation for me). The line is present in the Linux glibc.modulemap, but was not there for Android Bionic modulemap.
This commit is contained in:
@@ -83,6 +83,7 @@ module SwiftGlibc [system] {
|
||||
export *
|
||||
}
|
||||
module math {
|
||||
link "m"
|
||||
header "${GLIBC_INCLUDE_PATH}/math.h"
|
||||
export *
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user