mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 21:29:26 -06:00
Merge remote-tracking branch 'origin/main' into feat/compilation-workers
This commit is contained in:
@@ -144,22 +144,6 @@ export class ClangCompiler extends BaseCompiler {
|
||||
return super.runExecutable(executable, executeParameters, homeDir);
|
||||
}
|
||||
|
||||
forceDwarf4UnlessOverridden(options: string[]) {
|
||||
const hasOverride = _.any(options, (option: string) => {
|
||||
return option.includes('-gdwarf-') || option.includes('-fdebug-default-version=');
|
||||
});
|
||||
|
||||
if (!hasOverride) return ['-gdwarf-4'].concat(options);
|
||||
|
||||
return options;
|
||||
}
|
||||
|
||||
override optionsForFilter(filters: ParseFiltersAndOutputOptions, outputFilename: string, userOptions?: string[]) {
|
||||
const options = super.optionsForFilter(filters, outputFilename);
|
||||
|
||||
return this.forceDwarf4UnlessOverridden(options);
|
||||
}
|
||||
|
||||
// Clang cross-compile with -stdlib=libc++ is currently (up to at least 18.1.0) broken:
|
||||
// https://github.com/llvm/llvm-project/issues/57104
|
||||
//
|
||||
|
||||
@@ -44,7 +44,7 @@ export class BaseDemangler extends AsmRegex {
|
||||
readonly includeMetadata: boolean;
|
||||
readonly compiler: BaseCompiler;
|
||||
|
||||
readonly jumpDef = /(j\w+|b|bl|blx)\s+([$_a-z][\w$@]*|"[$_a-z][\w$@]*")/i;
|
||||
readonly jumpDef = /(j\w+|b|bl|blx)\s+([$_a-z][\w$.@]*|"[$_a-z][\w$.@]*")/i;
|
||||
readonly callDef = /callq?\s+([$._a-z][\w$.@]*|"[$._a-z][\w$.@]*")/i;
|
||||
readonly callPtrDef1 = /callq?.*ptr\s\[[a-z]*\s\+\s([$._a-z][\w$.@]*|"[$._a-z][\w$.@]*")]/i;
|
||||
readonly callPtrDef2 = /callq?\s+([$*._a-z][\w$.@]*|"[$*._a-z][\w$.@]*")/i;
|
||||
|
||||
Reference in New Issue
Block a user