Fix Windows build

This commit is contained in:
2024-08-17 19:22:47 +02:00
parent db34f15177
commit 696bca8521
3 changed files with 5 additions and 13 deletions

View File

@ -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

View File

@ -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",
)

View File

@ -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]]