1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:07:46 +00:00

Toolchain: Don't pass -lpthread when pthreads are requested

This is essentially a no-op since we have our replacement linker script,
but if we can skip over that entirely, why not?
This commit is contained in:
Tim Schumacher 2022-07-15 16:09:36 +02:00 committed by Linus Groh
parent 5870484d1a
commit a857b6297a
2 changed files with 2 additions and 5 deletions

View file

@ -144,7 +144,7 @@ new file mode 100644
index 000000000..955422438
--- /dev/null
+++ b/clang/lib/Driver/ToolChains/Serenity.cpp
@@ -0,0 +1,340 @@
@@ -0,0 +1,337 @@
+//===---- Serenity.cpp - SerenityOS ToolChain Implementation ----*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
@ -306,9 +306,6 @@ index 000000000..955422438
+ }
+
+ if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs)) {
+ if (Args.hasArg(options::OPT_pthread, options::OPT_pthreads))
+ CmdArgs.push_back("-lpthread");
+
+ if (!Args.hasArg(options::OPT_nolibc))
+ CmdArgs.push_back("-lc");
+ }