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
|
||||
case envexec.StatusFileError:
|
||||
return resultFileError
|
||||
case envexec.StatusRuntimeError:
|
||||
case envexec.StatusNonzeroExitStatus, envexec.StatusSignalled:
|
||||
return resultRuntimeError
|
||||
case envexec.StatusJudgementFailed:
|
||||
return resultJudgementFailed
|
||||
|
||||
@ -56,6 +56,7 @@ func main() {
|
||||
WithBind("/lib", "lib", true).
|
||||
WithBind("/lib64", "lib64", 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
|
||||
// however, /proc gives interface like /proc/1/fd/3 ..
|
||||
// it is fine since open that file will be a EPERM
|
||||
|
||||
Loading…
Reference in New Issue
Block a user