diff options
| author | nebulaeonline <linux@nebulae.online> | 2018-12-23 22:44:02 -0500 |
|---|---|---|
| committer | nebulaeonline <linux@nebulae.online> | 2018-12-23 22:44:02 -0500 |
| commit | fdea12b2d9deaea6a90c7b1451df425e84b98099 (patch) | |
| tree | 7339fa363aa1124d7b83b05f94fc387ad54183ca /src/zig_llvm.cpp | |
| parent | 280187031a68c577e84c72add037271153d27c62 (diff) | |
| download | zig-fdea12b2d9deaea6a90c7b1451df425e84b98099.tar.gz zig-fdea12b2d9deaea6a90c7b1451df425e84b98099.zip | |
msvc subsystem option handling; added uefi os type
Diffstat (limited to 'src/zig_llvm.cpp')
| -rw-r--r-- | src/zig_llvm.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/zig_llvm.cpp b/src/zig_llvm.cpp index bda8fa0adc..bd63b7cbe5 100644 --- a/src/zig_llvm.cpp +++ b/src/zig_llvm.cpp @@ -690,7 +690,12 @@ const char *ZigLLVMGetVendorTypeName(ZigLLVM_VendorType vendor) { } const char *ZigLLVMGetOSTypeName(ZigLLVM_OSType os) { - return (const char*)Triple::getOSTypeName((Triple::OSType)os).bytes_begin(); + switch (os) { + case ZigLLVM_Uefi: + return "windows"; + default: + return (const char*)Triple::getOSTypeName((Triple::OSType)os).bytes_begin(); + } } const char *ZigLLVMGetEnvironmentTypeName(ZigLLVM_EnvironmentType env_type) { |
