From b7aa63c4f6d3b4f5912b3e15271e499e51d028e7 Mon Sep 17 00:00:00 2001 From: guzhihao4 Date: Mon, 19 Dec 2022 15:09:59 +0800 Subject: [PATCH] Fix math functions optimization Replace fast-math with fp-contract=fast Issue:#I66OIA Signed-off-by: guzhihao4 Change-Id: I97f546b03ace00bcdac9932676a5c31a8e642d5c --- musl_template.gni | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/musl_template.gni b/musl_template.gni index ba01fa83..c5993f83 100644 --- a/musl_template.gni +++ b/musl_template.gni @@ -601,7 +601,7 @@ template("musl_libs") { cflags = [ "-mllvm", "-instcombine-max-iterations=0", - "-ffast-math", + "-ffp-contract=fast", "-O3", "-fPIC", "-fstack-protector-strong", -- GitLab