aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-04-20 16:20:41 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-04-20 16:20:41 +0200
commit91a1173f086cc7ac6aa2c66acb3742028339d71c (patch)
treec0c302c8df30ae138936adb8abf07d698af98692
parentd72bf08c55d532f7505a01402f15aeb1af3ff266 (diff)
Suppress VC14 warning C4503 'decorated name length exceeded, name was truncated'
-rw-r--r--bpkg/buildfile5
1 files changed, 5 insertions, 0 deletions
diff --git a/bpkg/buildfile b/bpkg/buildfile
index e0b479b..43bfe53 100644
--- a/bpkg/buildfile
+++ b/bpkg/buildfile
@@ -59,6 +59,11 @@ if ($cxx.class == 'msvc')
elif ($cxx.class == 'gcc')
cxx.coptions += -Wno-unknown-pragmas
+# VC14 has issues with decorating long names.
+#
+if ($cxx.id == 'msvc' && $cxx.version.major == 19 && $cxx.version.minor < 10)
+ cxx.coptions += /wd4503
+
obj{utility}: cxx.poptions += -DBPKG_EXE_SUFFIX='"'$bin.exe.suffix'"'
if $cli.configured