Skip to content

Commit f0f48e5

Browse files
authored
Merge pull request #20430 from alblue/master
Add -lm to Glibc.modulemap on Linux
2 parents 57122c1 + 0ee1d78 commit f0f48e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stdlib/public/Platform/glibc.modulemap.gyb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ module SwiftGlibc [system] {
120120
export *
121121
}
122122
module math {
123+
% if CMAKE_SDK == "LINUX":
124+
link "m"
125+
% end
123126
header "${GLIBC_INCLUDE_PATH}/math.h"
124127
export *
125128
}

0 commit comments

Comments
 (0)