Skip to content

Disable arch-native flag when building releases that we distribute - #10142

Merged
mergify[bot] merged 3 commits into
haskell:masterfrom
Kleidukos:disable-march-native-flag
Jun 24, 2024
Merged

mergify[bot] merged 3 commits into
haskell:masterfrom
Kleidukos:disable-march-native-flag

Conversation

@Kleidukos

@Kleidukos Kleidukos commented Jun 24, 2024 •

Copy link
Copy Markdown
Member

We don't want to accidentally create binaries that contain CPU instructions only available in some machines. Hashable has this flag that enables the usage of -march=native for its FFI C code, so we have to disable it explicitly.

The cabal.validate.project file is also concerned because we use it to build the cabal-head binary that we distribute.

Comment thread cabal.release.project Resolved
@Kleidukos
Kleidukos force-pushed the disable-march-native-flag branch from 031971c to 4244fb5 Compare June 24, 2024 12:51
@ulysses4ever

Copy link
Copy Markdown
Collaborator

We probably need to fast-track this to not hold back the release, don't we?

@Kleidukos

Copy link
Copy Markdown
Member Author

@ulysses4ever Probably yes

@geekosaur

Copy link
Copy Markdown
Collaborator

Seems likely, yes.

@ulysses4ever ulysses4ever added the merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days label Jun 24, 2024
@Kleidukos Kleidukos added the squash+merge me Tell Mergify Bot to squash-merge label Jun 24, 2024
@mergify
mergify Bot merged commit 9bb4f58 into haskell:master Jun 24, 2024
@ulysses4ever

Copy link
Copy Markdown
Collaborator

@mergify backport 3.12

@mergify

mergify Bot commented Jun 24, 2024 •

Copy link
Copy Markdown
Contributor

backport 3.12

✅ Backports have been created

Details

mergify Bot pushed a commit that referenced this pull request Jun 24, 2024
…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)
mergify Bot added a commit that referenced this pull request Jun 24, 2024
…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]>
erikd pushed a commit to erikd/cabal that referenced this pull request Jan 9, 2025
…askell#10142)

* Disable arch-native flag when building releases that we distribute

* Use the constraints stanza

* Also disable the flag in cabal.validate.project
erikd pushed a commit to erikd/cabal that referenced this pull request Jan 9, 2025
…askell#10142)

* Disable arch-native flag when building releases that we distribute

* Use the constraints stanza

* Also disable the flag in cabal.validate.project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days squash+merge me Tell Mergify Bot to squash-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants