Skip to content

Commit

Permalink
Try using per source flags
Browse files Browse the repository at this point in the history
  • Loading branch information
hsyl20 committed Dec 11, 2024
1 parent 9e62f97 commit 563f2cf
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
1 change: 1 addition & 0 deletions GenSettings.hs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ stage1_settings input = output

, keep_def "target RTS linker only supports shared libraries" "NO"
, ("Use interpreter", "NO")
, ("base unit-id", "base")
, keep_fail "Support SMP"
, keep_fail "RTS ways"
, keep_fail "Tables next to code"
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ HADRIAN_SETTINGS_STAGE0 := $(shell ghc --info | runghc GenSettings.hs ghc-boot)
HADRIAN_SETTINGS_STAGE1 := $(shell ghc --info | runghc GenSettings.hs ghc-boot)
SETTINGS_STAGE1 := $(shell ghc --info | runghc GenSettings.hs stage1)

# CABAL := /home/hsyl20/repo/cabal/dist-newstyle/build/x86_64-linux/ghc-9.8.2/cabal-install-3.15.0.0/x/cabal/build/cabal/cabal
CABAL := cabal
CABAL := /home/hsyl20/repo/cabal/dist-newstyle/build/x86_64-linux/ghc-9.8.2/cabal-install-3.15.0.0/x/cabal/build/cabal/cabal
# CABAL := cabal

all: _build/stage1/bin/ghc

Expand Down
3 changes: 3 additions & 0 deletions cabal.project-stage0
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,7 @@ package *
package ghc-boot-th
flags: +bootstrap

-- package genprimopcode
-- flags: -build-tool-depends

allow-newer: ghc-boot-th
11 changes: 9 additions & 2 deletions rts/rts.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,15 @@ library
-- AutoApply is generated
AutoApply.cmm
AutoApply_V16.cmm
AutoApply_V32.cmm
AutoApply_V64.cmm

if arch(x86_64)
cmm-sources:
AutoApply_V32.cmm (-mavx2)
AutoApply_V64.cmm (-mavx512f)
else
cmm-sources:
AutoApply_V32.cmm
AutoApply_V64.cmm

-- Adjustor stuff
if flag(libffi-adjustors)
Expand Down

0 comments on commit 563f2cf

Please sign in to comment.