diff --git a/packages/hydrojudge/package.json b/packages/hydrojudge/package.json index 3b8f291a9..14cbfffcf 100644 --- a/packages/hydrojudge/package.json +++ b/packages/hydrojudge/package.json @@ -1,7 +1,7 @@ { "name": "@hydrooj/hydrojudge", "bin": "bin/hydrojudge.js", - "version": "2.14.3", + "version": "2.14.4", "main": "package.json", "author": "undefined ", "repository": "https://github.com/hydro-dev/Hydro.git", diff --git a/packages/hydrojudge/src/compile.ts b/packages/hydrojudge/src/compile.ts index bd7500e5d..79b73816b 100644 --- a/packages/hydrojudge/src/compile.ts +++ b/packages/hydrojudge/src/compile.ts @@ -17,7 +17,11 @@ export = async function compile( status, stdout, stderr, fileIds, } = await run( copyIn['compile.sh'] ? '/bin/bash compile.sh' : lang.compile, - { copyIn: { ...copyIn, [lang.code_file]: { content: code } }, copyOutCached: [target] }, + { + copyIn: { ...copyIn, [lang.code_file]: { content: code } }, + copyOutCached: [target], + env: { HYDRO_LANG: lang.key }, + }, ); if (status !== STATUS.STATUS_ACCEPTED) throw new CompileError({ status, stdout, stderr }); if (!fileIds[target]) throw new CompileError({ stderr: 'Executable file not found.' });