diff --git a/compile.cpp b/compile.cpp index 5134a883eb3212e792bf8b60c711b7eb92e55683..849a9b3a27d9c0873a417def5d01381c1a1be420 100644 --- a/compile.cpp +++ b/compile.cpp @@ -48,7 +48,7 @@ int eis::compile_code(const std::string& code, const std::string& outputName) close(childStdoutPipe[PIPE_WRITE]); close(childStdoutPipe[PIPE_READ]); - ret = execlp("g++", "gcc", "--shared", "-O2", "-ffast-math", "-ftree-vectorize", "-mavx", "-x", "c++", "-o", outputName.c_str(), "-", NULL); + ret = execlp("g++", "gcc", "--shared", "-O2", "-ffast-math", "-ftree-vectorize", "-march=native", "-x", "c++", "-o", outputName.c_str(), "-", NULL); exit(ret); }