diff --git a/llvm/utils/gn/build/BUILD.gn b/llvm/utils/gn/build/BUILD.gn index 9b5254e4c9f0b..f080a4c64c37d 100644 --- a/llvm/utils/gn/build/BUILD.gn +++ b/llvm/utils/gn/build/BUILD.gn @@ -179,6 +179,7 @@ config("compiler_defaults") { "_HAS_EXCEPTIONS=0", "_UNICODE", "UNICODE", + "CLANG_BUILD_STATIC", ] cflags += [ "/EHs-c-" ] cflags_cc += [ "/std:c++17" ]