-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework LTO, Intel Assembly syntax and default compile-options #309
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ex-storage/nim-codex/pull/625\#discussion_r1397594279 Implement workaround for Nim v2
…g symbol _hasAdxImpl__OOZconstantineZplatformsZisaZcpuinfo95x5654_70
MacOS is so annoying ....
|
This was
linked to
issues
Dec 2, 2023
@dryajov @benbierens @markspanbroek Constantine now uses Intel Syntax only if LTO is chosen instead of always, hence it isn't needed to set it in libraries that depend on it. constantine/constantine/platforms/config.nim Lines 31 to 56 in 747830b
If using LTO:
|
mratsim
added a commit
that referenced
this pull request
Dec 4, 2023
* zal: export MSM and threadpool to C DLL * fix LTO spurious warnings when building library * fix appType staticLib vs staticlib * fix threadpool * shorter EC FFI * zal: now compiles with halo2curves and can call Nim * zal: Pass tests * zal: add benches Halo2curves vs Constantine * CI: add constantine-rust / ZAL to CI * CI: can't use variables for shell * CI: display rust version * Rust: force clang for building (Rust regression following #309 removal of rustBuild in .nimble) * LLVM (hence llvm-config) isn't installed in Github Actions CI * documentation of compile options * reduce rust verbosity * cargo in CI, spray and pray * don't update Rust twice * if using clang, Nim expects llvm-ar for static libraries archiver * Expose full LLVM on MacOS, no Rust for i386, CPU features * fix HW info * the light at the end of the CI tunnel * ensure autoloading kernel32.dll threading API * Keep stack guard pages on Windows * MacOS CI: some agents don't support ADX instructions and SIGILL
markspanbroek
added a commit
to vacp2p/nim-libp2p
that referenced
this pull request
Dec 11, 2023
Fixes assembly incompatibility with secp256k1: mratsim/constantine#309
dryajov
pushed a commit
to vacp2p/nim-libp2p
that referenced
this pull request
Dec 22, 2023
Fixes assembly incompatibility with secp256k1: mratsim/constantine#309
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This tries to address #303 #295 codex-storage/nim-codex#625 (comment) following making Constantine compatible with LTO #231
Intel assembly is used on a per-file basis to avoid interfering with other libraries like secp256k1doesn't work