From 5e64dbec81504aaacac1e733edd5230f59670466 Mon Sep 17 00:00:00 2001
From: Kimplul <kimi.h.kuparinen@gmail.com>
Date: Sat, 13 Jul 2024 21:36:02 +0300
Subject: make tests only compile once

+ Select between jit/bytecode with a runtime parameter
---
 tests/stxr_f.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'tests/stxr_f.c')

diff --git a/tests/stxr_f.c b/tests/stxr_f.c
index 6b43c83..3e68060 100644
--- a/tests/stxr_f.c
+++ b/tests/stxr_f.c
@@ -4,8 +4,10 @@
 
 static float data[] = { -1.0, 0.0, 0.5 };
 
-int main()
+int main(int argc, char *argv[])
 {
+	(void)argv;
+	bool do_jit = argc > 1;
 	struct ejit_operand operands[3] = {
 		EJIT_OPERAND_GPR(0, EJIT_TYPE(void *)),
 		EJIT_OPERAND_GPR(1, EJIT_TYPE(int)),
-- 
cgit v1.2.3