mirror of
https://github.com/criyle/go-judge.git
synced 2025-11-04 14:50:02 +08:00
Fix ghc compile
This commit is contained in:
parent
a36ff086b2
commit
300b8a0da4
@ -162,7 +162,7 @@ func convertResultTypes(s envexec.Status) testCaseResultType {
|
|||||||
return resultOutputLimitExceeded
|
return resultOutputLimitExceeded
|
||||||
case envexec.StatusFileError:
|
case envexec.StatusFileError:
|
||||||
return resultFileError
|
return resultFileError
|
||||||
case envexec.StatusRuntimeError:
|
case envexec.StatusNonzeroExitStatus, envexec.StatusSignalled:
|
||||||
return resultRuntimeError
|
return resultRuntimeError
|
||||||
case envexec.StatusJudgementFailed:
|
case envexec.StatusJudgementFailed:
|
||||||
return resultJudgementFailed
|
return resultJudgementFailed
|
||||||
|
|||||||
@ -56,6 +56,7 @@ func main() {
|
|||||||
WithBind("/lib", "lib", true).
|
WithBind("/lib", "lib", true).
|
||||||
WithBind("/lib64", "lib64", true).
|
WithBind("/lib64", "lib64", true).
|
||||||
WithBind("/usr", "usr", true).
|
WithBind("/usr", "usr", true).
|
||||||
|
WithBind("/var/lib/ghc", "var/lib/ghc", true).
|
||||||
// java wants /proc/self/exe as it need relative path for lib
|
// java wants /proc/self/exe as it need relative path for lib
|
||||||
// however, /proc gives interface like /proc/1/fd/3 ..
|
// however, /proc gives interface like /proc/1/fd/3 ..
|
||||||
// it is fine since open that file will be a EPERM
|
// it is fine since open that file will be a EPERM
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user