diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-04-20 16:20:41 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-04-20 16:20:41 +0200 |
commit | 91a1173f086cc7ac6aa2c66acb3742028339d71c (patch) | |
tree | c0c302c8df30ae138936adb8abf07d698af98692 | |
parent | d72bf08c55d532f7505a01402f15aeb1af3ff266 (diff) |
Suppress VC14 warning C4503 'decorated name length exceeded, name was truncated'
-rw-r--r-- | bpkg/buildfile | 5 |
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 |