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
So it checks if Zig version is lower than 0.14, then $SDKROOT is used as path for lib, include and framework files, otherwise it use / path for the same purpose.
My question is why it tied to Zig 0.14 version? I think if someone specify $SDKROOT, this exact path must be used as sdk, not the system one, despite Zig version.
For my problem manually setting -F$SDKROOT/System/Library/Frameworks as argument for zig cc solves the problem. The version of Zig I use is 0.14.1
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone!
I've faced an error when building project on Macos with
--target universal2-apple-darwin:$SDKROOTset to right locationI looked at source code and found one interesting part in
src/zig.rs:So it checks if Zig version is lower than 0.14, then
$SDKROOTis used as path for lib, include and framework files, otherwise it use/path for the same purpose.My question is why it tied to Zig 0.14 version? I think if someone specify
$SDKROOT, this exact path must be used as sdk, not the system one, despite Zig version.For my problem manually setting
-F$SDKROOT/System/Library/Frameworksas argument forzig ccsolves the problem. The version of Zig I use is 0.14.1Beta Was this translation helpful? Give feedback.
All reactions