zig cc with -c
parameter and no -target
parameter should look for native include directories
#4938
Labels
accepted
This proposal is planned.
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
proposal
This issue suggests modifications. If it also has the "accepted" label then it is planned.
zig cc
Zig as a drop-in C compiler feature
Milestone
Without
-nostdinc
, and when the target is native, and-c
parameter is provided (really it's when zig is not going to be used as a linker), it is not expected for the C command line options to contain-l
parameters, which is what currently triggers zig to pay attention to system include directories.This proposal is to look for native system include directories in
zig cc
mode under the following conditions:-nostdinc
is not provided-c
,-E
or other parameter is provided, meaning that Zig will not be used as a linkerThe text was updated successfully, but these errors were encountered: