mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 17:46:28 +08:00
judge: 修复java编译异常的问题
This commit is contained in:
1 parent
fb5dcd3369
commit
f78d19bebb
2 files changed
+2
-1
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/hydrojudge",
|
"name": "@hydrooj/hydrojudge",
|
||||||
"version": "2.0.14",
|
"version": "2.0.15",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"author": "masnn",
|
"author": "masnn",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ export = async function compile(
|
|||||||
const LANGS = yaml.safeLoad(await global.Hydro.model.system.get('hydrojudge.langs'));
|
const LANGS = yaml.safeLoad(await global.Hydro.model.system.get('hydrojudge.langs'));
|
||||||
if (!LANGS[lang]) throw new SystemError(`不支持的语言:${lang}`);
|
if (!LANGS[lang]) throw new SystemError(`不支持的语言:${lang}`);
|
||||||
const info = LANGS[lang];
|
const info = LANGS[lang];
|
||||||
|
target = info.target || target;
|
||||||
const f = {};
|
const f = {};
|
||||||
if (info.type === 'compiler') {
|
if (info.type === 'compiler') {
|
||||||
copyIn[info.code_file] = { content: code };
|
copyIn[info.code_file] = { content: code };
|
||||||
|
|||||||
Reference in new issue
Block a user