-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.zig ccZig as a drop-in C compiler featureZig as a drop-in C compiler feature
Milestone
Description
Extracted from #4774; see #3089 for the original issue.
-
llvm target triple vs zig target triple; llvm -mcpu vs zig -mcpuzig cc: parse-target
and-mcpu
/-march
/-mtune
flags according to clang #4911 - test it with building some projects
- libsoundio (I had to disable
-fprofile-arcs
) - LuaJIT (native)
- LuaJIT (aarch64-linux-musl) -
undefined symbol: __divtf3
- libsoundio (I had to disable
- specific special args
- -MD, -MV, -MF
-
nostdinc and how it relates to the native targetnot needed -
stack protector argsnot needed - -g
-
omit-frame-pointernot needed - -fsanitize
-
zig cc: integration with -m flags #4912-m
args affect cpu flags and-march=native
- linker script
- passing args to the linker
- -z
- -Xlinker
- --for-linker
- -L
- version script
- subsystem
- -F
- -framework
- optimization flags
- look at the list of generated options and determine if any more need to be detected
Metadata
Metadata
Assignees
Labels
contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.zig ccZig as a drop-in C compiler featureZig as a drop-in C compiler feature