diff options
author | Marco Poletti <poletti.marco@gmail.com> | 2020-08-09 11:02:44 -0700 |
---|---|---|
committer | Marco Poletti <poletti.marco@gmail.com> | 2020-08-09 11:02:44 -0700 |
commit | 94cefefb42f3685c1d64664e6aa9cbaf834b25ee (patch) | |
tree | c4d1dd5d2b0055c5c7bc4b7ff6ef56dd5af0d7b2 /configuration/bazel/has_trivial_copy.cpp | |
parent | 29c9fd265cfa72ee72fb64257fe4b72198d87264 (diff) | |
download | google-fruit-94cefefb42f3685c1d64664e6aa9cbaf834b25ee.tar.gz |
Automatically detect compiler features when running under Bazel. Before this commit, bazel builds used a hardcoded configuration, but that doesn't work e.g. on Windows where MSVC needs a different config.
Diffstat (limited to 'configuration/bazel/has_trivial_copy.cpp')
-rw-r--r-- | configuration/bazel/has_trivial_copy.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configuration/bazel/has_trivial_copy.cpp b/configuration/bazel/has_trivial_copy.cpp new file mode 100644 index 0000000..b9da7d1 --- /dev/null +++ b/configuration/bazel/has_trivial_copy.cpp @@ -0,0 +1,5 @@ +int main() { + bool b = __has_trivial_copy(int); + (void) b; + return 0; +} |