aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpartouf <partouf@gmail.com>2023-09-24 00:40:10 +0200
committerpartouf <partouf@gmail.com>2023-09-24 00:40:10 +0200
commit4ee4f7646cd91e1c8727c207b30e0e384c1a35cf (patch)
tree152043843587d98d5d0d358bc060e92084dedb5a
parent634f9a13aeec96f40df47028f3dd124b82f18e0f (diff)
downloadcompiler-explorer-gh-8823.tar.gz
compiler-explorer-gh-8823.zip
make rpath flag easier overridable in compiler classgh-8823
-rw-r--r--lib/base-compiler.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/base-compiler.ts b/lib/base-compiler.ts
index 1118f0fe2..3c1be64ff 100644
--- a/lib/base-compiler.ts
+++ b/lib/base-compiler.ts
@@ -172,6 +172,7 @@ export class BaseCompiler implements ICompiler {
protected externalparser: null | ExternalParserBase;
protected supportedLibraries?: Record<string, Library>;
protected packager: Packager;
+ protected defaultRpathFlag: string = '-Wl,-rpath,';
private static objdumpAndParseCounter = new PromClient.Counter({
name: 'ce_objdumpandparsetime_total',
help: 'Time spent on objdump and parsing of objdumps',
@@ -883,7 +884,7 @@ export class BaseCompiler implements ICompiler {
libDownloadPath?: string,
toolchainPath?: string,
) {
- const pathFlag = this.compiler.rpathFlag || '-Wl,-rpath,';
+ const pathFlag = this.compiler.rpathFlag || this.defaultRpathFlag;
const libPathFlag = this.compiler.libpathFlag || '-L';
let toolchainLibraryPaths: string[] = [];