diff options
author | Marco Poletti <poletti.marco@gmail.com> | 2017-03-12 15:54:31 +0000 |
---|---|---|
committer | Marco Poletti <poletti.marco@gmail.com> | 2017-03-12 15:54:31 +0000 |
commit | 905dc09804c6f14bdaa063d37d71346a62bc37ea (patch) | |
tree | 02ec37f14cf428cc5bb299b4d4de36e728fb9d8e /configuration/bazel/fruit/impl/fruit-config-base.h | |
parent | 81c74e3b8a2d21509af3453bb0cf11337478ca60 (diff) | |
download | google-fruit-905dc09804c6f14bdaa063d37d71346a62bc37ea.tar.gz |
Support building Fruit with MSVC.
Current limitations:
* Tests must be run from the command-line, using the "Native Tools Command Prompt" that comes with MSVC. Running tests from within MSVC doesn't work.
* Tests must be run serially (-j 1), otherwise there might be test failures with errors like "fatal error C1033: cannot open program database 'C:\Some\Path\vc140.pdb'"
* Building Fruit as a shared library (.dll) is not yet supported, Fruit can only be built as a static library (.lib).
Diffstat (limited to 'configuration/bazel/fruit/impl/fruit-config-base.h')
-rw-r--r-- | configuration/bazel/fruit/impl/fruit-config-base.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configuration/bazel/fruit/impl/fruit-config-base.h b/configuration/bazel/fruit/impl/fruit-config-base.h index bd06bc0..adf3d5e 100644 --- a/configuration/bazel/fruit/impl/fruit-config-base.h +++ b/configuration/bazel/fruit/impl/fruit-config-base.h @@ -39,9 +39,15 @@ // Ignored if FRUIT_HAS_STD_IS_TRIVIALLY_COPYABLE is set. #define FRUIT_HAS_IS_TRIVIALLY_COPYABLE 1 +// Whether the compiler defines std::is_trivially_copy_constructible. +#define FRUIT_HAS_STD_IS_TRIVIALLY_COPY_CONSTRUCTIBLE 1 + // Whether typeid() is available. Typically, it is unless RTTI is disabled. #define FRUIT_HAS_TYPEID 1 +// Whether typeid() is constexpr. Typically, it is except in MSVC. +#define FRUIT_HAS_CONSTEXPR_TYPEID 1 + // Whether abi::__cxa_demangle() is available after including cxxabi.h. #define FRUIT_HAS_CXA_DEMANGLE 1 |