From b8a6a1f62ba8803aaa3b9f25c8a3fcdf184eb393 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Sat, 27 Aug 2022 18:41:17 +0200 Subject: compiler: use the LLVM builtins everywhere This gives some more optimization opportunities to LLVM, because it understands these intrinsics. For example, it might convert llvm.sqrt.f64 to llvm.sqrt.f32 if possible. --- builder/musl.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'builder/musl.go') diff --git a/builder/musl.go b/builder/musl.go index 8a3716f08..a1967e377 100644 --- a/builder/musl.go +++ b/builder/musl.go @@ -89,6 +89,7 @@ var Musl = Library{ "-Wno-shift-op-parentheses", "-Wno-ignored-attributes", "-Wno-string-plus-int", + "-Wno-ignored-pragmas", "-Qunused-arguments", // Select include dirs. Don't include standard library includes // (that would introduce host dependencies and other complications), @@ -117,6 +118,7 @@ var Musl = Library{ "legacy/*.c", "malloc/*.c", "mman/*.c", + "math/*.c", "signal/*.c", "stdio/*.c", "string/*.c", -- cgit v1.2.3