aboutsummaryrefslogtreecommitdiff
path: root/src/target.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/target.cpp')
-rw-r--r--src/target.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/target.cpp b/src/target.cpp
index e3dad05cf6..8a58a42b59 100644
--- a/src/target.cpp
+++ b/src/target.cpp
@@ -555,6 +555,14 @@ const char *target_o_file_ext(ZigTarget *target) {
}
}
+const char *target_exe_file_ext(ZigTarget *target) {
+ if (target->os == ZigLLVM_Win32) {
+ return ".exe";
+ } else {
+ return "";
+ }
+}
+
enum FloatAbi {
FloatAbiHard,
FloatAbiSoft,