pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/lld Fix setting configuration.
details: https://anonhg.NetBSD.org/pkgsrc/rev/c6c2a14e9ad5
branches: trunk
changeset: 339226:c6c2a14e9ad5
user: rjs <rjs%pkgsrc.org@localhost>
date: Sun Sep 08 20:49:11 2019 +0000
description:
Fix setting configuration.
diffstat:
devel/lld/Makefile | 3 ++-
devel/lld/distinfo | 4 ++--
devel/lld/patches/patch-ELF_Driver.cpp | 20 ++++++++++++++------
3 files changed, 18 insertions(+), 9 deletions(-)
diffs (93 lines):
diff -r e469e560278e -r c6c2a14e9ad5 devel/lld/Makefile
--- a/devel/lld/Makefile Sun Sep 08 20:47:04 2019 +0000
+++ b/devel/lld/Makefile Sun Sep 08 20:49:11 2019 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.5 2019/08/05 19:06:50 adam Exp $
+# $NetBSD: Makefile,v 1.6 2019/09/08 20:49:11 rjs Exp $
DISTNAME= lld-8.0.1.src
PKGNAME= ${DISTNAME:S/.src//}
+PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=llvm/}
GITHUB_PROJECT= llvm-project
diff -r e469e560278e -r c6c2a14e9ad5 devel/lld/distinfo
--- a/devel/lld/distinfo Sun Sep 08 20:47:04 2019 +0000
+++ b/devel/lld/distinfo Sun Sep 08 20:49:11 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2019/08/05 19:06:50 adam Exp $
+$NetBSD: distinfo,v 1.4 2019/09/08 20:49:11 rjs Exp $
SHA1 (lld-8.0.1.src.tar.xz) = 67d84c054c8b858d29389aa8ad47a25f632e4a3a
RMD160 (lld-8.0.1.src.tar.xz) = eb28179fe500862f1ccffe1633b6b1af7239d190
@@ -6,7 +6,7 @@
Size (lld-8.0.1.src.tar.xz) = 996440 bytes
SHA1 (patch-CMakeLists.txt) = df8e32f5f23bf2f2615a891177f61dc65359e955
SHA1 (patch-ELF_Config.h) = de2578f6c447aade843c59f78189da4f1d79b29a
-SHA1 (patch-ELF_Driver.cpp) = abb0cf1fb577cc6df04f5ca7d7edab17d27e3217
+SHA1 (patch-ELF_Driver.cpp) = 4ea55eb73e29dd90d369487528899d7e5930f2af
SHA1 (patch-ELF_Driver.h) = e100fb0c86cc7d20b0f64919e73888a81a4836df
SHA1 (patch-ELF_Options.td) = c8107a2c599b2444e52bdefe5f2dc539d277a092
SHA1 (patch-ELF_Writer.cpp) = ab4ca25f832f20a5b4c80fe0f5f28822c09fb4ee
diff -r e469e560278e -r c6c2a14e9ad5 devel/lld/patches/patch-ELF_Driver.cpp
--- a/devel/lld/patches/patch-ELF_Driver.cpp Sun Sep 08 20:47:04 2019 +0000
+++ b/devel/lld/patches/patch-ELF_Driver.cpp Sun Sep 08 20:49:11 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ELF_Driver.cpp,v 1.2 2019/06/02 08:37:39 adam Exp $
+$NetBSD: patch-ELF_Driver.cpp,v 1.3 2019/09/08 20:49:11 rjs Exp $
Add support for customizing LLD behavior on target triple.
https://reviews.llvm.org/D56650
@@ -101,7 +101,7 @@
return;
}
-+ appendDefaultSearchPaths();
++ setTargetTriple(ArgsArr[0], Args);
+
// Handle -v or -version.
//
@@ -118,7 +118,15 @@
if (const char *Path = getReproduceOption(Args)) {
// Note that --reproduce is a debug option so you can ignore it
-@@ -746,6 +805,34 @@ static void parseClangOption(StringRef O
+@@ -412,6 +471,7 @@ void LinkerDriver::main(ArrayRef<const c
+
+ readConfigs(Args);
+ checkZOptions(Args);
++ appendDefaultSearchPaths();
+
+ // The behavior of -v or --version is a bit strange, but this is
+ // needed for compatibility with GNU linkers.
+@@ -746,6 +806,34 @@ static void parseClangOption(StringRef O
error(Msg + ": " + StringRef(Err).trim());
}
@@ -153,7 +161,7 @@
// Initializes Config members by the command line options.
void LinkerDriver::readConfigs(opt::InputArgList &Args) {
errorHandler().Verbose = Args.hasArg(OPT_verbose);
-@@ -779,7 +866,8 @@ void LinkerDriver::readConfigs(opt::Inpu
+@@ -779,7 +867,8 @@ void LinkerDriver::readConfigs(opt::Inpu
Config->CallGraphProfileSort = Args.hasFlag(
OPT_call_graph_profile_sort, OPT_no_call_graph_profile_sort, true);
Config->EnableNewDtags =
@@ -163,7 +171,7 @@
Config->Entry = Args.getLastArgValue(OPT_entry);
Config->ExecuteOnly =
Args.hasFlag(OPT_execute_only, OPT_no_execute_only, false);
-@@ -869,6 +957,8 @@ void LinkerDriver::readConfigs(opt::Inpu
+@@ -869,6 +958,8 @@ void LinkerDriver::readConfigs(opt::Inpu
Config->ZCombreloc = getZFlag(Args, "combreloc", "nocombreloc", true);
Config->ZCopyreloc = getZFlag(Args, "copyreloc", "nocopyreloc", true);
Config->ZExecstack = getZFlag(Args, "execstack", "noexecstack", false);
@@ -172,7 +180,7 @@
Config->ZGlobal = hasZOption(Args, "global");
Config->ZHazardplt = hasZOption(Args, "hazardplt");
Config->ZInitfirst = hasZOption(Args, "initfirst");
-@@ -1173,7 +1263,7 @@ void LinkerDriver::inferMachineType() {
+@@ -1173,7 +1264,7 @@ void LinkerDriver::inferMachineType() {
// each target.
static uint64_t getMaxPageSize(opt::InputArgList &Args) {
uint64_t Val = args::getZOptionValue(Args, OPT_z, "max-page-size",
Home |
Main Index |
Thread Index |
Old Index