diff options
author | Marc Auberer <marc.auberer@sap.com> | 2024-02-15 12:37:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-15 12:37:20 +0100 |
commit | 9fa88d50d50a75dbc5f72c220b9c426b6bc34986 (patch) | |
tree | 9375a572fd9f0b88365bdb8c83035c66f46c15cb /lib/compilers | |
parent | d92b473cbde5b589a73605e826a8c25aaac6cc94 (diff) | |
download | compiler-explorer-9fa88d50d50a75dbc5f72c220b9c426b6bc34986.tar.gz compiler-explorer-9fa88d50d50a75dbc5f72c220b9c426b6bc34986.zip |
Diffstat (limited to 'lib/compilers')
-rw-r--r-- | lib/compilers/spice.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/compilers/spice.ts b/lib/compilers/spice.ts index 96f286e45..4328b95e1 100644 --- a/lib/compilers/spice.ts +++ b/lib/compilers/spice.ts @@ -30,6 +30,7 @@ import type {PreliminaryCompilerInfo} from '../../types/compiler.interfaces.js'; import type {ExecutableExecutionOptions} from '../../types/execution/execution.interfaces.js'; import type {ParseFiltersAndOutputOptions} from '../../types/features/filters.interfaces.js'; import {BaseCompiler} from '../base-compiler.js'; +import {ExecutionOptions} from '../../types/compilation/compilation.interfaces.js'; export class SpiceCompiler extends BaseCompiler { optLevelSuffix = ''; @@ -88,6 +89,12 @@ export class SpiceCompiler extends BaseCompiler { return options; } + override getDefaultExecOptions(): ExecutionOptions & {env: Record<string, string>} { + const opts = super.getDefaultExecOptions(); + opts.env.SPICE_STD_DIR = path.join(path.dirname(this.compiler.exe), 'std'); + return opts; + } + override runExecutable(executable, executeParameters: ExecutableExecutionOptions, homeDir) { return super.runExecutable(executable, executeParameters, homeDir); } |