aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/lld/tools/lld/lld.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/lld/tools/lld/lld.cpp')
-rw-r--r--contrib/llvm-project/lld/tools/lld/lld.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/llvm-project/lld/tools/lld/lld.cpp b/contrib/llvm-project/lld/tools/lld/lld.cpp
index d30362ba7826..8827a883ceb6 100644
--- a/contrib/llvm-project/lld/tools/lld/lld.cpp
+++ b/contrib/llvm-project/lld/tools/lld/lld.cpp
@@ -146,7 +146,8 @@ static Flavor parseFlavor(std::vector<const char *> &v) {
static int lldMain(int argc, const char **argv, llvm::raw_ostream &stdoutOS,
llvm::raw_ostream &stderrOS, bool exitEarly = true) {
std::vector<const char *> args(argv, argv + argc);
-#ifdef __FreeBSD__
+#if 1
+ /* On FreeBSD we only build the ELF linker. */
return !elf::link(args, exitEarly, stdoutOS, stderrOS);
#else
switch (parseFlavor(args)) {