feat(Toolchain): Darwin toolchain for SDK paths#974
Conversation
|
hmmm, things broke... (besides maccatalyst, which i'm still figuring out) |
3157b10 to
b79e0b3
Compare
| driverkit, | ||
| iphoneos, | ||
| iphonesimulator, | ||
| macosx: packed struct { catalyst: bool }, |
There was a problem hiding this comment.
currently without internet at home, and i can't download the ios toolchain. Bazel says the macosx sdk is used to build, but the ios sdk is used for version compatibility checks
once i'm able to download the ios sdk, i'll check the clang commands for a fake maccatalyst application
There was a problem hiding this comment.
ok i did this, but still can't figure it out :( i saw some invocations of a wrapper tool that seems to be compiling things for ios, but that can't be right?? i'm gonna try an strace next week
|
|
||
| sdk: Sdk, | ||
| sdk_path: ?[]const u8, | ||
| // toolchain_path: ?[]const u8, |
There was a problem hiding this comment.
tests pass without handling the toolchain path. however, i think the 'correct' behavior is to append toolchain paths before aro paths?
if i do handle this, then i need to do similar handling for tc.driver.resource_dir that i do fo rtc.driver.sysroot below
b79e0b3 to
181bdb0
Compare
181bdb0 to
6be63d9
Compare
as i'm working on objective-c support (per #970), i've realized that support is somewhat blocked on fetching the SDK path for the target platform - specifically, for objc headers, which i believe are implicitly included in Objective-C files.
this PR adds a new
toolchains/Darwin.zigfile for Darwin-specific target behavior. Right now, this is only used to:$SDKROOT/usr/lib)$SDKROOT/usr/include)In a future PR, this file will be expanded to add the SDK framework path (
$SDKROOT/System/Library/Frameworks)