From d7bd4366e7abfaac6aed0017af3fca580a1a25ce Mon Sep 17 00:00:00 2001 From: ProgramSnail Date: Mon, 9 Jun 2025 17:08:41 +0300 Subject: [PATCH] use xmake for tests, xmake -O3 --- byterun/performance_check.sh | 5 ++++- byterun/xmake.lua | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/byterun/performance_check.sh b/byterun/performance_check.sh index fee1d0931..e27172c14 100755 --- a/byterun/performance_check.sh +++ b/byterun/performance_check.sh @@ -1,6 +1,9 @@ #!/usr/bin/env bash -dune build > /dev/null +xmake build +cp "build/linux/x86_64/release/byterun" byterun.exe + +# dune build > /dev/null compiler=../_build/default/src/Driver.exe diff --git a/byterun/xmake.lua b/byterun/xmake.lua index 0949913f1..3a7ad8ce3 100644 --- a/byterun/xmake.lua +++ b/byterun/xmake.lua @@ -5,6 +5,7 @@ set_languages("c++20", "c11") target("byterun") set_kind("binary") + add_cxflags("-O3") add_includedirs("include", "../runtime") add_files("../runtime/**.c", "../runtime/**.S") add_files( "src/**.cpp", "src/**.c")