-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconf.py
37 lines (37 loc) · 1.2 KB
/
conf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
PATTERN = "upper({id})"
REPLACE_SPACE = "_"
EXTENSION = ".xml"
ENV = {
".c": {
"compile": "gcc -DLOCAL -fno-optimize-sibling-calls -fno-strict-aliasing -fno-asm -lm -s -O2 -o {0} {0}.c",
"execute": "./{0}",
},
".cpp": {
"compile": "g++ -DLOCAL -fno-optimize-sibling-calls -fno-strict-aliasing -lm -s -x c++ -O2 -std=c++0x -D__USE_MINGW_ANSI_STDIO=0 -o {0} {0}.cpp",
"execute": "./{0}",
},
".py": {
"compile": "",
"execute": "python {0}.py",
},
".java": {
"compile": "javac -cp '.;*' {0}.java",
"execute": "java -Djava.security.manager -Djava.security.policy=java.policy -Xmx512M -Xss64M -Duser.language=en -Duser.region=US -Duser.variant=US {0}",
},
".scala": {
"compile": "fsc -cp '.;*' {0}.scala",
"execute": "JAVA_OPTS='-Djava.security.policy=java.policy -Xmx512M -Xss64M -Duser.language=en -Duser.region=US -Duser.variant=US' scala {0}",
},
".rb": {
"compile": "",
"execute": "ruby {0}.rb",
},
".go": {
"compile": "go build {0}.go",
"execute": "./{0}",
},
".hs": {
"compile": "ghc --make -O -o {0} {0}.hs",
"execute": "./{0}",
},
}