aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/argument-parsers.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers/argument-parsers.ts')
-rw-r--r--lib/compilers/argument-parsers.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/compilers/argument-parsers.ts b/lib/compilers/argument-parsers.ts
index 638fea2a3..efe5a70a9 100644
--- a/lib/compilers/argument-parsers.ts
+++ b/lib/compilers/argument-parsers.ts
@@ -1031,6 +1031,13 @@ export class FlangParser extends ClangParser {
compiler.compiler.irArg = ['-emit-llvm'];
compiler.compiler.minIrArgs = ['-emit-llvm'];
}
+
+ // flang-new supports -mllvm, flang-to-external-fc does not.
+ if (this.hasSupport(options, '-mllvm')) {
+ // flang doesn't support -masm, but the llvm equivalent does work.
+ compiler.compiler.supportsIntel = true;
+ compiler.compiler.intelAsm = '-mllvm -x86-asm-syntax=intel';
+ }
}
static override hasSupport(options, param) {