Browse Source

llvm: AddRunTimeLibs

ncurses
Emery Hemingway 2 years ago
parent
commit
dffe75fcc1
  1. 6
      overlay/llvm-8/clang/genode.patch
  2. 2
      overlay/llvm-8/default.nix

6
overlay/llvm-8/clang/genode.patch

@ -121,10 +121,10 @@ index 1a46073aa..72b6f7389 100644
StringRef S = A->getValue();
diff --git a/lib/Driver/ToolChains/Genode.cpp b/lib/Driver/ToolChains/Genode.cpp
new file mode 100644
index 000000000..cf87b10ba
index 000000000..488863cb4
--- /dev/null
+++ b/lib/Driver/ToolChains/Genode.cpp
@@ -0,0 +1,145 @@
@@ -0,0 +1,147 @@
+//===--- Genode.cpp - Genode ToolChain Implementations ----------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
@ -223,6 +223,8 @@ index 000000000..cf87b10ba
+
+ AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA);
+
+ AddRunTimeLibs(ToolChain, D, CmdArgs, Args);
+
+ if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nodefaultlibs, options::OPT_noposix)) {
+ CmdArgs.push_back("-lc");
+ if (!Args.hasArg(options::OPT_shared)) {

2
overlay/llvm-8/default.nix

@ -102,7 +102,7 @@ let
targetLlvmLibraries.libcxx
targetLlvmLibraries.libcxxabi
targetLlvmLibraries.compiler-rt
] ++ stdenv.lib.optionals (!stdenv.targetPlatform.isGenode && !stdenv.targetPlatform.isWasm) [
] ++ stdenv.lib.optionals (!stdenv.targetPlatform.isWasm) [
targetLlvmLibraries.libunwind
];
extraBuildCommands = ''

Loading…
Cancel
Save