Author: Brad Smith
Date: 2021-09-03T17:33:48-04:00
New Revision: b989662eb000efb54b91b8c82d2b2713e2da20fc

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

LOG: OpenBSD also needs execinfo

Added: 
    

Modified: 
    clang/lib/Driver/ToolChains/CommonArgs.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Driver/ToolChains/CommonArgs.cpp 
b/clang/lib/Driver/ToolChains/CommonArgs.cpp
index 412d41dbee61b..ca426955b7f9a 100644
--- a/clang/lib/Driver/ToolChains/CommonArgs.cpp
+++ b/clang/lib/Driver/ToolChains/CommonArgs.cpp
@@ -779,7 +779,8 @@ void tools::linkSanitizerRuntimeDeps(const ToolChain &TC,
     CmdArgs.push_back("-ldl");
   // Required for backtrace on some OSes
   if (TC.getTriple().isOSFreeBSD() ||
-      TC.getTriple().isOSNetBSD())
+      TC.getTriple().isOSNetBSD() ||
+      TC.getTriple().isOSOpenBSD())
     CmdArgs.push_back("-lexecinfo");
 }
 


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to