Skip to content
Snippets Groups Projects
Commit 5f531eec authored by Carl Philipp Klemm's avatar Carl Philipp Klemm
Browse files

compile: use march=natvie instead of hardcodeing avx

parent 6d171d47
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment