diff options
| author | Bodie Solomon <bodie@synapsegarden.net> | 2018-06-17 14:35:00 -0400 |
|---|---|---|
| committer | Bodie Solomon <bodie@synapsegarden.net> | 2018-06-18 07:40:31 -0400 |
| commit | e6b69151c0d30d2df95d1f92b65784eac7d186d9 (patch) | |
| tree | e92630f1caed328d5e95347d5dcecb45949c0319 /src/zig_llvm.cpp | |
| parent | d52ef95f77478582e5c479cc2bd0a4ecb5591933 (diff) | |
| download | zig-e6b69151c0d30d2df95d1f92b65784eac7d186d9.tar.gz zig-e6b69151c0d30d2df95d1f92b65784eac7d186d9.zip | |
Fix 1117: Use realpath in stage1 Darwin os_self_exe_path
Issue: https://github.com/ziglang/zig/issues/1117
The macOS stage1 Zig compiler should look in Zig's real absolute path
for the Zig stdlib, but os_self_exe_path looks in its path as returned
by _NSGetExecutablePath, which may be a symlink. This means that a
symlinked Zig cannot find the Zig stdlib.
This patch fixes the issue by resolving the _NSGetExecutablePath result
to the real path using realpath() before copying the result to the
output path.
Diffstat (limited to 'src/zig_llvm.cpp')
0 files changed, 0 insertions, 0 deletions
