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/Platform.hs | |
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/Platform.hs')
-rw-r--r-- | compiler/GHC/Platform.hs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/GHC/Platform.hs b/compiler/GHC/Platform.hs index b3f5bf830c..9bebcc5990 100644 --- a/compiler/GHC/Platform.hs +++ b/compiler/GHC/Platform.hs @@ -74,6 +74,11 @@ data Platform = Platform -- ^ Determines whether we will be compiling info tables that reside just -- before the entry code, or with an indirection to the entry code. See -- TABLES_NEXT_TO_CODE in rts/include/rts/storage/InfoTables.h. + , platformHasLibm :: !Bool + -- ^ Some platforms require that we explicitly link against @libm@ if any + -- math-y things are used (which we assume to include all programs). See + -- #14022. + , platform_constants :: !(Maybe PlatformConstants) -- ^ Constants such as structure offsets, type sizes, etc. } @@ -93,6 +98,7 @@ genericPlatform = Platform , platformHasGnuNonexecStack = False , platformHasIdentDirective = False , platformHasSubsectionsViaSymbols= False + , platformHasLibm = False , platformIsCrossCompiling = False , platformLeadingUnderscore = False , platformTablesNextToCode = True |