diff options
author | Ayke van Laethem <[email protected]> | 2022-08-27 18:41:17 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2022-08-28 23:37:56 +0200 |
commit | b8a6a1f62ba8803aaa3b9f25c8a3fcdf184eb393 (patch) | |
tree | 19b88115eaab07764f57fee0e16684e5f2974909 /builder/musl.go | |
parent | ef912a132d20f000e4cd7fef7c698a762ba928e0 (diff) | |
download | tinygo-b8a6a1f62ba8803aaa3b9f25c8a3fcdf184eb393.tar.gz tinygo-b8a6a1f62ba8803aaa3b9f25c8a3fcdf184eb393.zip |
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.
Diffstat (limited to 'builder/musl.go')
-rw-r--r-- | builder/musl.go | 2 |
1 files changed, 2 insertions, 0 deletions
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", |