Fix Windows build
This commit is contained in:
3
.bazelrc
3
.bazelrc
@ -1,3 +1,6 @@
|
|||||||
|
build:windows --extra_execution_platforms=//:x64_windows-clang-cl
|
||||||
|
build:windows --extra_toolchains=@@local_config_cc//:cc-toolchain-x64_windows-clang-cl
|
||||||
|
|
||||||
build:linux --repo_env=CC=clang
|
build:linux --repo_env=CC=clang
|
||||||
|
|
||||||
build:windows --cxxopt=-Xclang=-std=c++20
|
build:windows --cxxopt=-Xclang=-std=c++20
|
||||||
|
@ -6,12 +6,3 @@ git_override(
|
|||||||
remote = "https://github.com/hedronvision/bazel-compile-commands-extractor.git",
|
remote = "https://github.com/hedronvision/bazel-compile-commands-extractor.git",
|
||||||
commit = "a14ad3a64e7bf398ab48105aaa0348e032ac87f8",
|
commit = "a14ad3a64e7bf398ab48105aaa0348e032ac87f8",
|
||||||
)
|
)
|
||||||
|
|
||||||
register_execution_platforms(
|
|
||||||
# "//:x64_windows-clang-cl",
|
|
||||||
)
|
|
||||||
|
|
||||||
register_toolchains(
|
|
||||||
# "@@local_config_cc//:cc-toolchain-x64_windows-clang-cl",
|
|
||||||
)
|
|
||||||
|
|
||||||
|
@ -1,12 +1,10 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifdef _MSVC_VER_
|
#ifndef __clang__
|
||||||
#elif defined(__clang_version__)
|
|
||||||
#else
|
|
||||||
#error Not a valid environment
|
#error Not a valid environment
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _MSVC_VER_
|
#ifdef _MSC_VER
|
||||||
#define ASL_NO_UNIQUE_ADDRESS [[msvc::no_unique_address]]
|
#define ASL_NO_UNIQUE_ADDRESS [[msvc::no_unique_address]]
|
||||||
#else
|
#else
|
||||||
#define ASL_NO_UNIQUE_ADDRESS [[no_unique_address]]
|
#define ASL_NO_UNIQUE_ADDRESS [[no_unique_address]]
|
||||||
|
Reference in New Issue
Block a user