forked from easybuilders/easybuild-easyconfigs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch to disable sysroot for cling in ROOT ebconfigs
- Loading branch information
Pär Axel Leonard Rosén
committed
Oct 3, 2024
1 parent
ef56e11
commit 0707601
Showing
5 changed files
with
53 additions
and
4 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
easybuild/easyconfigs/r/ROOT/ROOT-6.12.06_cling-runtime-sysroot.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
This patch disables the sysroot feature for cling. | ||
|
||
Reusing existing patch found in Gentoo ebuild for ROOT, see url: | ||
https://github.com/gentoo/gentoo/blob/master/sci-physics/root/files/root-6.12.06_cling-runtime-sysroot.patch | ||
|
||
Patch needed for ROOT to build in EESSI: | ||
https://github.com/EESSI/software-layer/pull/769 | ||
|
||
Index: root-6.12.06/interpreter/cling/lib/Utils/Paths.cpp | ||
=================================================================== | ||
--- root-6.12.06.orig/interpreter/cling/lib/Utils/Paths.cpp | ||
+++ root-6.12.06/interpreter/cling/lib/Utils/Paths.cpp | ||
@@ -57,11 +57,6 @@ using namespace clang; | ||
void CopyIncludePaths(const clang::HeaderSearchOptions& Opts, | ||
llvm::SmallVectorImpl<std::string>& incpaths, | ||
bool withSystem, bool withFlags) { | ||
- if (withFlags && Opts.Sysroot != "/") { | ||
- incpaths.push_back("-isysroot"); | ||
- incpaths.push_back(Opts.Sysroot); | ||
- } | ||
- | ||
/// User specified include entries. | ||
for (unsigned i = 0, e = Opts.UserEntries.size(); i != e; ++i) { | ||
const HeaderSearchOptions::Entry &E = Opts.UserEntries[i]; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters