Skip to content

Commit f77e283

Browse files
committed
[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.
1 parent 38fdb33 commit f77e283

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/Platform/bionic.modulemap.gyb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ module SwiftGlibc [system] {
8383
export *
8484
}
8585
module math {
86+
link "m"
8687
header "${GLIBC_INCLUDE_PATH}/math.h"
8788
export *
8889
}

0 commit comments

Comments
 (0)