[llvm] 51a91d6 - [gn build] port b1356504e63ae (c++17)
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 6 04:51:38 PDT 2022
Author: Nico Weber
Date: 2022-08-06T07:51:06-04:00
New Revision: 51a91d6c5d87fb85945f8c99b1e678e05d0723c0
URL: https://github.com/llvm/llvm-project/commit/51a91d6c5d87fb85945f8c99b1e678e05d0723c0
DIFF: https://github.com/llvm/llvm-project/commit/51a91d6c5d87fb85945f8c99b1e678e05d0723c0.diff
LOG: [gn build] port b1356504e63ae (c++17)
Added:
Modified:
llvm/utils/gn/build/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/build/BUILD.gn b/llvm/utils/gn/build/BUILD.gn
index 5e7131cd0ded2..23200402905b3 100644
--- a/llvm/utils/gn/build/BUILD.gn
+++ b/llvm/utils/gn/build/BUILD.gn
@@ -117,7 +117,7 @@ config("compiler_defaults") {
ldflags += [ "-Wl,--color-diagnostics" ]
}
cflags_cc += [
- "-std=c++14",
+ "-std=c++17",
"-fvisibility-inlines-hidden",
]
} else {
@@ -160,7 +160,10 @@ config("compiler_defaults") {
"_UNICODE",
"UNICODE",
]
- cflags += [ "/EHs-c-" ]
+ cflags += [
+ "/std:c++17",
+ "/EHs-c-",
+ ]
# The MSVC default value (1 MB) is not enough for parsing recursive C++
# templates in Clang.
More information about the llvm-commits
mailing list