mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 08:09:45 -06:00
fix for pre v11 nvcc
This commit is contained in:
@@ -24,8 +24,11 @@
|
||||
|
||||
import path from 'path';
|
||||
|
||||
import Semver from 'semver';
|
||||
|
||||
import {BaseCompiler} from '../base-compiler';
|
||||
import {SassAsmParser} from '../parsers/asm-parser-sass';
|
||||
import {asSafeVer} from '../utils';
|
||||
|
||||
import {ClangParser} from './argument-parsers';
|
||||
|
||||
@@ -55,8 +58,12 @@ export class NvccCompiler extends BaseCompiler {
|
||||
}
|
||||
|
||||
async objdump(outputFilename, result, maxSize) {
|
||||
// For nvdisasm.
|
||||
const args = [outputFilename, '-c', '-g', '-hex'];
|
||||
let args = [outputFilename, '-c', '-g', '-hex'];
|
||||
|
||||
if (Semver.lt(asSafeVer(this.compiler.semver), '11.0.0', true)) {
|
||||
args = [outputFilename, '-c', '-g'];
|
||||
}
|
||||
|
||||
const execOptions = {maxOutput: maxSize, customCwd: path.dirname(outputFilename)};
|
||||
|
||||
const objResult = await this.exec(this.compiler.objdumper, args, execOptions);
|
||||
|
||||
Reference in New Issue
Block a user