Browse Source

Add -mx32 to C / C++ / C++11 compiler arguments

master
Menci 7 years ago
parent
commit
51774d5e19
  1. 2
      src/languages/c.ts
  2. 2
      src/languages/cpp.ts
  3. 2
      src/languages/cpp11.ts

2
src/languages/c.ts

@ -10,7 +10,7 @@ export const lang = {
// write a shell script or some other stuff, // write a shell script or some other stuff,
// and put it to your sandbox. // and put it to your sandbox.
executable: "/usr/bin/gcc", executable: "/usr/bin/gcc",
parameters: ["gcc", sourcePath, "-o", `${outputDirectory}/a.out`, "-O2", "-fdiagnostics-color=always", "-DONLINE_JUDGE"], parameters: ["gcc", sourcePath, "-o", `${outputDirectory}/a.out`, "-O2", "-fdiagnostics-color=always", "-DONLINE_JUDGE", "-mx32"],
time: 5000, time: 5000,
memory: 1024 * 1024 * 1024, memory: 1024 * 1024 * 1024,
process: 10, process: 10,

2
src/languages/cpp.ts

@ -10,7 +10,7 @@ export const lang = {
// write a shell script or some other stuff, // write a shell script or some other stuff,
// and put it to your sandbox. // and put it to your sandbox.
executable: "/usr/bin/g++", executable: "/usr/bin/g++",
parameters: ["g++", sourcePath, "-o", `${outputDirectory}/a.out`, "-O2", "-fdiagnostics-color=always", "-DONLINE_JUDGE"], parameters: ["g++", sourcePath, "-o", `${outputDirectory}/a.out`, "-O2", "-fdiagnostics-color=always", "-DONLINE_JUDGE", "-mx32"],
time: 5000, time: 5000,
memory: 1024 * 1024 * 1024, memory: 1024 * 1024 * 1024,
process: 10, process: 10,

2
src/languages/cpp11.ts

@ -10,7 +10,7 @@ export const lang = {
// write a shell script or some other stuff, // write a shell script or some other stuff,
// and put it to your sandbox. // and put it to your sandbox.
executable: "/usr/bin/g++", executable: "/usr/bin/g++",
parameters: ["g++", sourcePath, "-o", `${outputDirectory}/a.out`, "-std=c++11", "-O2", "-fdiagnostics-color=always", "-DONLINE_JUDGE"], parameters: ["g++", sourcePath, "-o", `${outputDirectory}/a.out`, "-std=c++11", "-O2", "-fdiagnostics-color=always", "-DONLINE_JUDGE", "-mx32"],
time: 5000, time: 5000,
memory: 1024 * 1024 * 1024, memory: 1024 * 1024 * 1024,
process: 10, process: 10,

Loading…
Cancel
Save