From 3eda80d547f8d58f3710d922289fe614091ccf6f Mon Sep 17 00:00:00 2001 From: Edd Barrett Date: Thu, 3 Oct 2024 15:55:16 +0100 Subject: [PATCH] -yk-dont-opt-func-abi needs to be applied to the pre-opt pipeline too. This isn't required by the yk test suite, but it is for the yklua test suite. --- bin/yk-config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/yk-config b/bin/yk-config index f3a5998ca..8a83f602d 100755 --- a/bin/yk-config +++ b/bin/yk-config @@ -44,6 +44,8 @@ handle_arg() { # Outline functions containing loops during AOT compilation. Needed # for `yk_unroll_safe`. OUTPUT="${OUTPUT} -fyk-noinline-funcs-with-loops" + # Don't optimise functions by changing their calling convention. + OUTPUT="${OUTPUT} -mllvm -yk-dont-opt-func-abi" ;; --cppflags) # Path to yk.h