aboutsummaryrefslogtreecommitdiff
path: root/src/zig_llvm.cpp
diff options
context:
space:
mode:
authorAndrew Gutekanst <andrew.gutekanst@gmail.com>2021-09-10 23:52:46 -0400
committerAndrew Gutekanst <andrew.gutekanst@gmail.com>2021-09-10 23:55:13 -0400
commit6734271eb0b8b7eafd098986b30a5bc34e180b72 (patch)
treecda1ce0885d8eff9aba9e955432fb8a51314f018 /src/zig_llvm.cpp
parent0c091feb5ae52caf1ebf885c0de55b3159207001 (diff)
downloadzig-6734271eb0b8b7eafd098986b30a5bc34e180b72.tar.gz
zig-6734271eb0b8b7eafd098986b30a5bc34e180b72.zip
link: fix invalid file path used when cross-compiling for Windows -> Mac
While investigating hexops/mach#8 with @slimsag, we found that zld is forming invalid file paths (absolute paths concatenated together), which hits the unreachable `OBJECT_NAME_INVALID` case in `openDirAccessMaskW`: https://github.com/ziglang/zig/blob/0c091feb5ae52caf1ebf885c0de55b3159207001/lib/std/fs.zig#L1522 This is caused by appending `dir` (which is guaranteed to be absolute) to `root`, an obviously incorrect operation: https://github.com/ziglang/zig/blob/0c091feb5ae52caf1ebf885c0de55b3159207001/src/link/MachO.zig#L494-L499 Fixes hexops/mach#8 Co-authored-by: Stephen Gutekanst <stephen@hexops.com> Signed-off-by: Stephen Gutekanst <stephen@hexops.com> Signed-off-by: Andrew Gutekanst <andrew.gutekanst@gmail.com>
Diffstat (limited to 'src/zig_llvm.cpp')
0 files changed, 0 insertions, 0 deletions