mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
zig build: fix exe file ext to match target.cpp
This commit is contained in:
parent
edef35bb57
commit
7481a4ad08
@ -1163,10 +1163,15 @@ pub const Target = union(enum) {
|
||||
}
|
||||
|
||||
pub fn exeFileExt(self: Target) []const u8 {
|
||||
return switch (self.getOs()) {
|
||||
.windows => ".exe",
|
||||
else => "",
|
||||
};
|
||||
if (self.isWindows()) {
|
||||
return ".exe";
|
||||
} else if (self.isUefi()) {
|
||||
return ".efi";
|
||||
} else if (self.isWasm()) {
|
||||
return ".wasm";
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
pub fn staticLibSuffix(self: Target) []const u8 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user