Repository navigation
Conversation
…rupted c source file names.
…dule build to compile
…atic library as upstream does. Closes allyourcodebase#17
…o other builds (and avoid the need to compile hacl for both the host and target archs)
… downstream dependency
… move the current ConfigHeader code out of build.zig and into this program. This requires duplicating the functionality offered by the ConfigHeader build step. However, keeping the execution of the compiler out of the configurer greatly speeds up the build process.
This file contains hidden or 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
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 is a very quick and dirty port to Zig 0.17 that serves my purposes. The big changes are:
What's really needed is a standard way to execute the zig compiler on an arbitrary string of c code from within the configure phase as a way of testing if platform triple X supports feature Y. A two-phase configure could accomplish this.
Some further changes include compiling the
_haclmodule as a static library as upstream does, adding the ABIFLAGS compile flag, and generating a placeholder_sysconfigdata__(platform)_.pymodule, which together closes #17 .I admit this PR is messy, please give me some feedback and I'll be happy to improve it.