[llvm] aaf2a47 - [gn build] Set -fmsc-version=1920 on Windows

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 3 15:56:22 PST 2022


Author: Arthur Eubanks
Date: 2022-02-03T15:56:02-08:00
New Revision: aaf2a47b1b08e6a06fd74e12746dff97a9d9e6fc

URL: https://github.com/llvm/llvm-project/commit/aaf2a47b1b08e6a06fd74e12746dff97a9d9e6fc
DIFF: https://github.com/llvm/llvm-project/commit/aaf2a47b1b08e6a06fd74e12746dff97a9d9e6fc.diff

LOG: [gn build] Set -fmsc-version=1920 on Windows

Now that the minimum version version of MSVC required to build LLVM has
been bumped, we see

  ../../llvm/include\llvm/Support/Compiler.h(94,2): error: LLVM requires
  at least VS 2019.
  #error LLVM requires at least VS 2019.

e.g. http://45.33.8.238/win/53703/step_4.txt

1920 corresponds to the earliest version of VS 2019.

Reviewed By: thakis

Differential Revision: https://reviews.llvm.org/D118713

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 38f890d5cfcb..fff3e06ad8bb 100644
--- a/llvm/utils/gn/build/BUILD.gn
+++ b/llvm/utils/gn/build/BUILD.gn
@@ -283,7 +283,7 @@ config("compiler_defaults") {
       "-Werror=date-time",
     ]
     if (current_os == "win") {
-      cflags += [ "-fmsc-version=1916" ]
+      cflags += [ "-fmsc-version=1920" ]
       if (use_lld) {
         cflags += [ "/Brepro" ]
         ldflags += [ "/Brepro" ]


        


More information about the llvm-commits mailing list