Skip to content

feat: Add compiler_runtime attribute to control -fcompiler-rt#444

Merged
aherrmann merged 5 commits intomainfrom
compiler-rt
Mar 16, 2025
Merged

feat: Add compiler_runtime attribute to control -fcompiler-rt#444
aherrmann merged 5 commits intomainfrom
compiler-rt

Conversation

@aherrmann
Copy link
Owner

@aherrmann aherrmann commented Mar 16, 2025

The compiler_runtime attribute accepts the values

  • "include" to pass "-fcompiler-rt",
  • "exclude" to pass "-fno-compiler-rt", and
  • "default" to rely on the Zig compiler's default.

  • feat: Add compiler_runtime attribute to control -fcompiler-rt
  • compiler_runtime test targets
  • Analysistests for compiler_runtime attribute

@aherrmann aherrmann enabled auto-merge March 16, 2025 17:01
`zig_shared_library` with `compiler_runtime = "exclude"` fails to
build on MacOS.
@aherrmann aherrmann merged commit f8701ff into main Mar 16, 2025
63 checks passed
@aherrmann aherrmann deleted the compiler-rt branch March 16, 2025 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant