diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-10-10 23:13:46 +0300 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-10-14 12:57:28 +0200 |
commit | 2671496db7c3996a6d8467360979f3085375c6df (patch) | |
tree | 281531a27acfdd4a929f19b6b35ce2a94bfc9633 /build/root.build | |
parent | 19e1b71a396e6b82c8e8a4602446ada0173579b9 (diff) |
Implement MSVC installation discovery for version 15 (2017) and later
In particular, this removes the requirement to build from the Visual Studio
command prompt. Note that since MSVC compiler binaries are target-specific
(i.e., there are no -m32/-m64 options nor something like /MACHINE), in this
case we default to a 64-bit build (a 32-bit build can still be achieved by
running from a suitable command prompt).
Finally, this mechanism is also used to find Clang bundled with MSVC.
Diffstat (limited to 'build/root.build')
-rw-r--r-- | build/root.build | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build/root.build b/build/root.build index 4929cc0..0656ab5 100644 --- a/build/root.build +++ b/build/root.build @@ -13,6 +13,10 @@ ixx{*}: extension = ixx txx{*}: extension = txx cxx{*}: extension = cxx +# Note that we bundle some C headers (see the LICENSE file for details). +# +h{*}: extension = h + if ($cxx.target.system == 'win32-msvc') cxx.poptions += -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS |