diff options
author | Sylvain Henry <sylvain@haskus.fr> | 2021-09-16 16:17:44 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-09-22 08:24:23 -0400 |
commit | 92257abd4b64f0496204adb19462d05c1d6475e3 (patch) | |
tree | 906a64d411ff4116482742fdaeebd64fb24df570 /compiler/GHC/Settings | |
parent | bb37026e3547af569db6dce021b59f4d0ac70910 (diff) | |
download | haskell-92257abd4b64f0496204adb19462d05c1d6475e3.tar.gz |
Link with libm dynamically (#19877)
The compiler should be independent of the target.
Diffstat (limited to 'compiler/GHC/Settings')
-rw-r--r-- | compiler/GHC/Settings/IO.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/GHC/Settings/IO.hs b/compiler/GHC/Settings/IO.hs index 3c4e012675..49dd910d43 100644 --- a/compiler/GHC/Settings/IO.hs +++ b/compiler/GHC/Settings/IO.hs @@ -235,6 +235,7 @@ getTargetPlatform settingsFile settings = do targetHasGnuNonexecStack <- getBooleanSetting "target has GNU nonexec stack" targetHasIdentDirective <- getBooleanSetting "target has .ident directive" targetHasSubsectionsViaSymbols <- getBooleanSetting "target has subsections via symbols" + targetHasLibm <- getBooleanSetting "target has libm" crossCompiling <- getBooleanSetting "cross compiling" tablesNextToCode <- getBooleanSetting "Tables next to code" @@ -249,5 +250,6 @@ getTargetPlatform settingsFile settings = do , platformIsCrossCompiling = crossCompiling , platformLeadingUnderscore = targetLeadingUnderscore , platformTablesNextToCode = tablesNextToCode + , platformHasLibm = targetHasLibm , platform_constants = Nothing -- will be filled later when loading (or building) the RTS unit } |