mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 22:00:31 -04:00
We now always download everthing so apply all patches (except the ELFv2 patches) unconditionally. Don't imply CLANG fo ELFV2 since the patches will always apply. Install llvm-devel.mk for CROSS_TOOLCHAIN support subsuming the role of xtoolchain-llvm-devel. This means that users will get the dependency for CROSS_TOOLCHAIN=llvm-devel by installing llvm-devel. To avoid unnecessicary churn in other xtoolchain-llvm* ports, leave xtoolchain-llvm-devel in place and make it IGNORE in the -devel case. Once llvm90 (and maybe llvm80) are updated I'll remove it or move it as appropriate. Always install a link from ld.lld to ld as was done by xtoolchain-llvm-devel. Sponsored by: DARPA, AFRL
14 lines
626 B
Diff
14 lines
626 B
Diff
--- clang/lib/Driver/ToolChains/CommonArgs.cpp.orig 2017-05-10 17:18:56.000000000 +0000
|
|
+++ clang/lib/Driver/ToolChains/CommonArgs.cpp 2017-05-10 23:01:17.087686000 +0000
|
|
@@ -441,7 +441,10 @@
|
|
|
|
switch (TC.getDriver().getOpenMPRuntime(Args)) {
|
|
case Driver::OMPRT_OMP:
|
|
- CmdArgs.push_back("-lomp");
|
|
+ if (TC.getTriple().getOS() != llvm::Triple::FreeBSD || TC.isCrossCompiling() || !llvm::sys::fs::exists("%%LLVM_PREFIX%%/lib/libomp.so"))
|
|
+ CmdArgs.push_back("-lomp");
|
|
+ else
|
|
+ CmdArgs.push_back("%%LLVM_PREFIX%%/lib/libomp.so");
|
|
break;
|
|
case Driver::OMPRT_GOMP:
|
|
CmdArgs.push_back("-lgomp");
|