diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-08-11 16:41:20 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-09-19 09:37:31 -0700 |
| commit | 62a12e06315ce4c2eaadfc33bf32eb4af9417ba8 (patch) | |
| tree | 292516689088d985bb014be0a93b8f6fc1913f54 /src/codegen/llvm.zig | |
| parent | 1861036f3b61828d0b7641dcce65f37e516fd3f6 (diff) | |
| download | zig-62a12e06315ce4c2eaadfc33bf32eb4af9417ba8.tar.gz zig-62a12e06315ce4c2eaadfc33bf32eb4af9417ba8.zip | |
LLVM 17 std lib updates and fixes
* some manual fixes to generated CPU features code. in the future it
would be nice to make the script do those automatically. I suspect
the sm_90a thing is a bug in LLVM.
* add liteos to various target OS switches. I know nothing about this
OS; someone will need to work specifically on support for this OS
when the time comes to support it properly in zig.
* while waiting for the compiler, I went ahead and made more
conservative choices about when to use `inline` in std/Target.zig
Diffstat (limited to 'src/codegen/llvm.zig')
| -rw-r--r-- | src/codegen/llvm.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig index 2e61356b3a..c16e07ab6b 100644 --- a/src/codegen/llvm.zig +++ b/src/codegen/llvm.zig @@ -148,6 +148,7 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 { .watchos => "watchos", .driverkit => "driverkit", .shadermodel => "shadermodel", + .liteos => "liteos", .opencl, .glsl450, .vulkan, @@ -254,6 +255,7 @@ pub fn targetOs(os_tag: std.Target.Os.Tag) llvm.OSType { .emscripten => .Emscripten, .driverkit => .DriverKit, .shadermodel => .ShaderModel, + .liteos => .LiteOS, }; } |
