From 91a1173f086cc7ac6aa2c66acb3742028339d71c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 20 Apr 2018 16:20:41 +0200 Subject: Suppress VC14 warning C4503 'decorated name length exceeded, name was truncated' --- bpkg/buildfile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bpkg/buildfile') 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 -- cgit v1.1