Skip to content

Commit 2468b1d

Browse files
Kleidukosmergify[bot]
authored andcommitted
Disable arch-native flag when building releases that we distribute (#10142)
* Disable arch-native flag when building releases that we distribute * Use the constraints stanza * Also disable the flag in cabal.validate.project (cherry picked from commit 9bb4f58)
1 parent 82cad89 commit 2468b1d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

cabal.release.project

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@ import: project-cabal/pkgs/cabal.config
22
import: project-cabal/pkgs/install.config
33
import: project-cabal/pkgs/tests.config
44

5+
constraints:
6+
hashable -arch-native
7+
58
index-state: hackage.haskell.org 2024-06-17T00:00:01Z

cabal.validate.project

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,8 @@ tests: True
77
write-ghc-environment-files: never
88
program-options
99
ghc-options: -Werror
10+
11+
-- This project file is used to distribute the cabal-head binary,
12+
-- as such we cannot enable "-march=native".
13+
constraints:
14+
hashable -arch-native

0 commit comments

Comments
 (0)