diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-01-11 18:41:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-11 12:41:26 -0500 |
| commit | 6d9c02a54fc847e9bed3096f910e03babec63acb (patch) | |
| tree | 5c017906f23031ec47fc0056978f6901814d8ff6 /tools | |
| parent | 48731ccea9007529324e555ac9f24277d28c0d74 (diff) | |
| download | zig-6d9c02a54fc847e9bed3096f910e03babec63acb.tar.gz zig-6d9c02a54fc847e9bed3096f910e03babec63acb.zip | |
zig cc: integration with sysroot arg (#10568)
Prior to this change, even if the use specified the sysroot on the
compiler line like so
```
zig cc --sysroot=/path/to/sdk
```
it would only be used as a prefix to include paths and not as a prefix
for `zig ld` linker.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/update_clang_options.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/update_clang_options.zig b/tools/update_clang_options.zig index 7360f96560..73b1bbd284 100644 --- a/tools/update_clang_options.zig +++ b/tools/update_clang_options.zig @@ -412,6 +412,10 @@ const known_options = [_]KnownOpt{ .name = "emit-llvm", .ident = "emit_llvm", }, + .{ + .name = "sysroot", + .ident = "sysroot", + }, }; const blacklisted_options = [_][]const u8{}; |
