Skip to content

Commit

Permalink
Disable arch-native flag when building releases that we distribute (#…
Browse files Browse the repository at this point in the history
…10142) (#10144)

* 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)

Co-authored-by: Hécate <[email protected]>
  • Loading branch information
mergify[bot] and Kleidukos authored Jun 24, 2024
1 parent 82cad89 commit 357bbf0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cabal.release.project
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ import: project-cabal/pkgs/cabal.config
import: project-cabal/pkgs/install.config
import: project-cabal/pkgs/tests.config

constraints:
hashable -arch-native

index-state: hackage.haskell.org 2024-06-17T00:00:01Z
5 changes: 5 additions & 0 deletions cabal.validate.project
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ tests: True
write-ghc-environment-files: never
program-options
ghc-options: -Werror

-- This project file is used to distribute the cabal-head binary,
-- as such we cannot enable "-march=native".
constraints:
hashable -arch-native

0 comments on commit 357bbf0

Please sign in to comment.