-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorregressionIt worked in a previous version of Zig, but stopped working.It worked in a previous version of Zig, but stopped working.
Milestone
Description
Zig Version
0.12.0-dev.3594+355cceebc
Steps to Reproduce and Observed Behavior
Before #19174, the resinator preprocessor was clang
and was invoked after calling addCCArgs
which added mod.cc_argv
and comp.global_cc_argv
to the preprocessor argv. This meant that include directories added via things like std.Build.Compile.addIncludePath
would make it into the argv of the preprocessor.
After #19174, that is no longer the case. Because of this, there's no real way to use a LazyPath
for include directories that get passed to resinator
(there's only RcSourceFile.flags
which is a []const []const u8
).
Expected Behavior
Either:
- There should be a dedicated way to interface with
resinator
include dirs, etc through the build system (i.e.addRcIncludePath
), or - The include dirs added via
std.Build.Compile.addIncludePath
, etc should be inherited by resinator (as was done with clang before)
I'm currently leaning towards the second option, but am not totally sure yet.
jayrod246
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorregressionIt worked in a previous version of Zig, but stopped working.It worked in a previous version of Zig, but stopped working.