From 5f531eec4943fc52b5c43bfaa89b8ae5138ea3cc Mon Sep 17 00:00:00 2001
From: Carl Philipp Klemm <philipp@uvos.xyz>
Date: Mon, 9 Oct 2023 15:55:54 +0200
Subject: [PATCH] compile: use march=natvie instead of hardcodeing avx

---
 compile.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compile.cpp b/compile.cpp
index 5134a88..849a9b3 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);
 	}
-- 
GitLab