Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reinier Maas
GHC
Commits
b8ce5dfe
Commit
b8ce5dfe
authored
1 year ago
by
John Ericson
Committed by
Marge Bot
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Define `TABLES_NEXT_TO_CODE` in the RTS configure
We create a new cabal flag to facilitate this.
parent
5cf04f58
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
configure.ac
+0
-3
0 additions, 3 deletions
configure.ac
hadrian/src/Settings/Packages.hs
+5
-4
5 additions, 4 deletions
hadrian/src/Settings/Packages.hs
rts/configure.ac
+7
-0
7 additions, 0 deletions
rts/configure.ac
rts/rts.cabal
+2
-0
2 additions, 0 deletions
rts/rts.cabal
with
14 additions
and
7 deletions
configure.ac
+
0
−
3
View file @
b8ce5dfe
...
...
@@ -298,9 +298,6 @@ dnl ** Do a build with tables next to code?
dnl --------------------------------------------------------------
GHC_TABLES_NEXT_TO_CODE
if test x"$TablesNextToCode" = xYES; then
AC_DEFINE([TABLES_NEXT_TO_CODE], [1], [Define to 1 if info tables are laid out next to code])
fi
AC_SUBST(TablesNextToCode)
# Requires FPTOOLS_SET_PLATFORMS_VARS to be run first.
...
...
This diff is collapsed.
Click to expand it.
hadrian/src/Settings/Packages.hs
+
5
−
4
View file @
b8ce5dfe
...
...
@@ -281,8 +281,8 @@ rtsPackageArgs = package rts ? do
targetArch
<-
queryTarget
queryArch
targetOs
<-
queryTarget
queryOS
targetVendor
<-
queryTarget
queryVendor
ghcUnreg
<-
yesNo
<$>
queryTarget
tgtUnregisterised
ghcEnableTNC
<-
yesNo
<$>
queryTarget
tgtTablesNextToCode
ghcUnreg
<-
queryTarget
tgtUnregisterised
ghcEnableTNC
<-
queryTarget
tgtTablesNextToCode
rtsWays
<-
getRtsWays
way
<-
getWay
path
<-
getBuildPath
...
...
@@ -355,8 +355,8 @@ rtsPackageArgs = package rts ? do
,
"-DTargetArch="
++
show
targetArch
,
"-DTargetOS="
++
show
targetOs
,
"-DTargetVendor="
++
show
targetVendor
,
"-DGhcUnregisterised="
++
show
ghcUnreg
,
"-DTablesNextToCode="
++
show
ghcEnableTNC
,
"-DGhcUnregisterised="
++
show
(
yesNo
ghcUnreg
)
,
"-DTablesNextToCode="
++
show
(
yesNo
ghcEnableTNC
)
,
"-DRtsWay=
\"
rts_"
++
show
way
++
"
\"
"
]
...
...
@@ -414,6 +414,7 @@ rtsPackageArgs = package rts ? do
,
flag
UseLibzstd
`
cabalFlag
`
"libzstd"
,
flag
StaticLibzstd
`
cabalFlag
`
"static-libzstd"
,
queryTargetTarget
tgtSymbolsHaveLeadingUnderscore
`
cabalFlag
`
"leading-underscore"
,
ghcEnableTNC
`
cabalFlag
`
"tables-next-to-code"
,
Debug
`
wayUnit
`
way
`
cabalFlag
`
"find-ptr"
]
,
builder
(
Cabal
Setup
)
?
mconcat
...
...
This diff is collapsed.
Click to expand it.
rts/configure.ac
+
7
−
0
View file @
b8ce5dfe
...
...
@@ -50,6 +50,13 @@ fi
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
dnl ** Do a build with tables next to code?
dnl --------------------------------------------------------------
AS_IF(
[test "$CABAL_FLAG_tables_next_to_code" = 1],
[AC_DEFINE([TABLES_NEXT_TO_CODE], [1], [Define to 1 if info tables are laid out next to code])])
dnl detect compiler (prefer gcc over clang) and set $CC (unless CC already set),
dnl later CC is copied to CC_STAGE{1,2,3}
AC_PROG_CC([cc gcc clang])
...
...
This diff is collapsed.
Click to expand it.
rts/rts.cabal
+
2
−
0
View file @
b8ce5dfe
...
...
@@ -54,6 +54,8 @@ flag static-libzstd
default: False
flag leading-underscore
default: False
flag tables-next-to-code
default: False
flag smp
default: True
flag find-ptr
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment