You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but this works fine. Unfortunately it may not be a perfect comparison: a and b are fully-known at compile time, but I'm unsure if this is the case for exe and tests (perhaps they hold run-time information from the file-system).
Regardless, this is clearly equivalent to simply calling .addPackagePath twice, so it seems to me that it should work regardless of whether the variables contain run-time information.
Actual Behavior
./build.zig:11:35: error: cannot store runtime value in compile time variable
inline for (.{ exe, tests }) |x| {
^
The text was updated successfully, but these errors were encountered:
Zig Version
0.8.1
Steps to Reproduce
Run with
zig build
. Values of string literals here should have no effect on this error.Expected Behavior
At the very least, I'd expect the loop to lower to
I tried to create an MWE
but this works fine. Unfortunately it may not be a perfect comparison:
a
andb
are fully-known at compile time, but I'm unsure if this is the case forexe
andtests
(perhaps they hold run-time information from the file-system).Regardless, this is clearly equivalent to simply calling
.addPackagePath
twice, so it seems to me that it should work regardless of whether the variables contain run-time information.Actual Behavior
The text was updated successfully, but these errors were encountered: