File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1772,7 +1772,11 @@ class TranslateASTVisitor final
17721772 case AtomicExpr::AO ## ID: \
17731773 cbor_encode_string (array, #ID); \
17741774 break ;
1775+ #if CLANG_VERSION_MAJOR >= 19
1776+ #include " clang/Basic/Builtins.inc"
1777+ #else
17751778#include " clang/Basic/Builtins.def"
1779+ #endif
17761780 default : printError (" Unknown atomic builtin: " +
17771781 std::to_string (E->getOp ()), E);
17781782 };
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ pub fn find_llvm_config() -> Option<PathBuf> {
9191 . or_else ( || {
9292 // In PATH
9393 [
94+ "llvm-config-19" ,
9495 "llvm-config-18" ,
9596 "llvm-config-17" ,
9697 "llvm-config-16" ,
@@ -106,6 +107,7 @@ pub fn find_llvm_config() -> Option<PathBuf> {
106107 "llvm-config-7.0" ,
107108 "llvm-config" ,
108109 // Homebrew install locations on Intel macOS
110+ "/usr/local/opt/llvm@19/bin/llvm-config" ,
109111 "/usr/local/opt/llvm@18/bin/llvm-config" ,
110112 "/usr/local/opt/llvm@17/bin/llvm-config" ,
111113 "/usr/local/opt/llvm@16/bin/llvm-config" ,
@@ -119,6 +121,7 @@ pub fn find_llvm_config() -> Option<PathBuf> {
119121 "/usr/local/opt/llvm@8/bin/llvm-config" ,
120122 "/usr/local/opt/llvm/bin/llvm-config" ,
121123 // Homebrew install locations on Apple Silicon macOS
124+ "/opt/homebrew/opt/llvm@19/bin/llvm-config" ,
122125 "/opt/homebrew/opt/llvm@18/bin/llvm-config" ,
123126 "/opt/homebrew/opt/llvm@17/bin/llvm-config" ,
124127 "/opt/homebrew/opt/llvm@16/bin/llvm-config" ,
You can’t perform that action at this time.
0 commit comments