diff options
| author | Michael Dusan <michael.dusan@gmail.com> | 2019-09-22 07:18:49 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-09-22 11:21:22 -0400 |
| commit | c5716715d5e7d7a5eae76df77ed538a48d22f0ba (patch) | |
| tree | 07ceaa9ed53b8005b1e18a793857293dd90c7bfa /src/bigfloat.cpp | |
| parent | a11c20e26a6efd977656459710ae3d37fcbb2846 (diff) | |
| download | zig-c5716715d5e7d7a5eae76df77ed538a48d22f0ba.tar.gz zig-c5716715d5e7d7a5eae76df77ed538a48d22f0ba.zip | |
stage1: fix lost argv[0]
- bug presented on FreeBSD when `/proc` filesystem is not mounted
- bogus `cc` was used as exename, causing incorrect executable spawn
- llvm::sys::fs::getMainExecutable() has platform-specific code
to get exename and fallback is to use param argv0
- linux fallback is rare because `/proc` is usually mounted
- *BSD fallback is not rare because `/proc` is often not mounted
- macOS doesn't ever fallback: bug cannot present
- windows doesn't ever fallback: bug cannot present
- other Posix will always present
Diffstat (limited to 'src/bigfloat.cpp')
0 files changed, 0 insertions, 0 deletions
