From 51774d5e19add0ac80121f0f3a1a8bd11087b366 Mon Sep 17 00:00:00 2001 From: Menci Date: Sat, 13 Jan 2018 00:12:01 +0800 Subject: [PATCH] Add -mx32 to C / C++ / C++11 compiler arguments --- src/languages/c.ts | 2 +- src/languages/cpp.ts | 2 +- src/languages/cpp11.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/languages/c.ts b/src/languages/c.ts index 1c38457..682b0cd 100644 --- a/src/languages/c.ts +++ b/src/languages/c.ts @@ -10,7 +10,7 @@ export const lang = { // write a shell script or some other stuff, // and put it to your sandbox. 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, memory: 1024 * 1024 * 1024, process: 10, diff --git a/src/languages/cpp.ts b/src/languages/cpp.ts index 606789d..b1b8020 100644 --- a/src/languages/cpp.ts +++ b/src/languages/cpp.ts @@ -10,7 +10,7 @@ export const lang = { // write a shell script or some other stuff, // and put it to your sandbox. 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, memory: 1024 * 1024 * 1024, process: 10, diff --git a/src/languages/cpp11.ts b/src/languages/cpp11.ts index fd6b111..7959902 100644 --- a/src/languages/cpp11.ts +++ b/src/languages/cpp11.ts @@ -10,7 +10,7 @@ export const lang = { // write a shell script or some other stuff, // and put it to your sandbox. 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, memory: 1024 * 1024 * 1024, process: 10,