aboutsummaryrefslogtreecommitdiff
path: root/third_party/clspv/gn/llvm/sources/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/clspv/gn/llvm/sources/BUILD.gn')
-rw-r--r--third_party/clspv/gn/llvm/sources/BUILD.gn7
1 files changed, 7 insertions, 0 deletions
diff --git a/third_party/clspv/gn/llvm/sources/BUILD.gn b/third_party/clspv/gn/llvm/sources/BUILD.gn
index 2d3893786f..35181e0c57 100644
--- a/third_party/clspv/gn/llvm/sources/BUILD.gn
+++ b/third_party/clspv/gn/llvm/sources/BUILD.gn
@@ -11,6 +11,13 @@ config("clspv_llvm_private_config") {
"-DBLAKE3_NO_SSE2",
"-DBLAKE3_USE_NEON=0",
]
+
+ # Traditional MSVC preprocessor does not properly expand __VA_ARGS__
+ # in "OPTION(...)" properly in LLVM. This MSVC switch fixes this issue.
+ if (angle_is_msvc) {
+ cflags += [ "/Zc:preprocessor" ]
+ }
+
include_dirs = [
"$target_gen_dir/../../../",
"$root_gen_dir/$clspv_llvm_dir",