aboutsummaryrefslogtreecommitdiff
path: root/src/target.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-02-18 13:12:03 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-02-18 13:12:03 -0500
commit74a335c4ccd9eb4cfcc5cc6c01b633584c6bb6ba (patch)
tree1d44cdfafe00762e388d3114a0b9d44bb3bc0c4d /src/target.cpp
parentd2fb95af8804229181c4d28506ec37d94b9926e6 (diff)
parent7a84fe79b9d61bb3d4e21c169cc2b58722b194ce (diff)
downloadzig-74a335c4ccd9eb4cfcc5cc6c01b633584c6bb6ba.tar.gz
zig-74a335c4ccd9eb4cfcc5cc6c01b633584c6bb6ba.zip
Merge branch 'emekoi-fix-1711'
Diffstat (limited to 'src/target.cpp')
-rw-r--r--src/target.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/target.cpp b/src/target.cpp
index cea7826313..5352a21826 100644
--- a/src/target.cpp
+++ b/src/target.cpp
@@ -9,6 +9,7 @@
#include "error.hpp"
#include "target.hpp"
#include "util.hpp"
+#include "os.hpp"
#include <stdio.h>
@@ -848,7 +849,7 @@ const char *target_lib_file_ext(ZigTarget *target, bool is_static, size_t versio
if (is_static) {
return ".a";
} else {
- return buf_ptr(buf_sprintf(".so.%zu", version_major));
+ return buf_ptr(buf_sprintf(".so.%" ZIG_PRI_usize, version_major));
}
}
}