[llvm-branch-commits] [clang] c9a439e - Revert "[clang-repl] Enable native CPU detection by default"

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Jan 23 09:40:04 PST 2024


Author: Stefan Gränitz
Date: 2024-01-23T18:39:57+01:00
New Revision: c9a439ed53bc6852b913c202749b3aa8833b4207

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

LOG: Revert "[clang-repl] Enable native CPU detection by default"

Added: 
    

Modified: 
    clang/lib/Interpreter/Interpreter.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Interpreter/Interpreter.cpp b/clang/lib/Interpreter/Interpreter.cpp
index d1764d07dfd240..9f97a3c6b0be9e 100644
--- a/clang/lib/Interpreter/Interpreter.cpp
+++ b/clang/lib/Interpreter/Interpreter.cpp
@@ -148,7 +148,6 @@ IncrementalCompilerBuilder::create(std::vector<const char *> &ClangArgv) {
   // We do C++ by default; append right after argv[0] if no "-x" given
   ClangArgv.insert(ClangArgv.end(), "-Xclang");
   ClangArgv.insert(ClangArgv.end(), "-fincremental-extensions");
-  ClangArgv.insert(ClangArgv.end(), "-mcpu=native");
   ClangArgv.insert(ClangArgv.end(), "-c");
 
   // Put a dummy C++ file on to ensure there's at least one compile job for the


        


More information about the llvm-branch-commits mailing list