[libc-commits] [libc] d1417f4 - [libc] Fix missing bitcode flags passed to GPU vendor math

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Wed Jul 26 07:53:50 PDT 2023


Author: Joseph Huber
Date: 2023-07-26T09:53:38-05:00
New Revision: d1417f431fad59449d9f6950ba6b7324e864d2da

URL: https://github.com/llvm/llvm-project/commit/d1417f431fad59449d9f6950ba6b7324e864d2da
DIFF: https://github.com/llvm/llvm-project/commit/d1417f431fad59449d9f6950ba6b7324e864d2da.diff

LOG: [libc] Fix missing bitcode flags passed to GPU vendor math

Summary:
A previous patch missed adding these to all the definitions.

Added: 
    

Modified: 
    libc/src/math/gpu/vendor/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libc/src/math/gpu/vendor/CMakeLists.txt b/libc/src/math/gpu/vendor/CMakeLists.txt
index 17234fe94a9e28..f04e533390977c 100644
--- a/libc/src/math/gpu/vendor/CMakeLists.txt
+++ b/libc/src/math/gpu/vendor/CMakeLists.txt
@@ -102,6 +102,7 @@ add_entrypoint_object(
   HDRS
     ../../cos.h
   COMPILE_OPTIONS
+    ${bitcode_link_flags}
     -O2
 )
 
@@ -112,6 +113,7 @@ add_entrypoint_object(
   HDRS
     ../../cosf.h
   COMPILE_OPTIONS
+    ${bitcode_link_flags}
     -O2
 )
 
@@ -254,6 +256,7 @@ add_entrypoint_object(
   HDRS
     ../../ldexp.h
   COMPILE_OPTIONS
+    ${bitcode_link_flags}
     -O2
 )
 
@@ -264,6 +267,7 @@ add_entrypoint_object(
   HDRS
     ../../ldexpf.h
   COMPILE_OPTIONS
+    ${bitcode_link_flags}
     -O2
 )
 
@@ -274,6 +278,7 @@ add_entrypoint_object(
   HDRS
     ../../llrint.h
   COMPILE_OPTIONS
+    ${bitcode_link_flags}
     -O2
 )
 
@@ -284,6 +289,7 @@ add_entrypoint_object(
   HDRS
     ../../llrintf.h
   COMPILE_OPTIONS
+    ${bitcode_link_flags}
     -O2
 )
 
@@ -294,6 +300,7 @@ add_entrypoint_object(
   HDRS
     ../../llround.h
   COMPILE_OPTIONS
+    ${bitcode_link_flags}
     -O2
 )
 
@@ -304,6 +311,7 @@ add_entrypoint_object(
   HDRS
     ../../llroundf.h
   COMPILE_OPTIONS
+    ${bitcode_link_flags}
     -O2
 )
 
@@ -314,6 +322,7 @@ add_entrypoint_object(
   HDRS
     ../../pow.h
   COMPILE_OPTIONS
+    ${bitcode_link_flags}
     -O2
 )
 
@@ -324,6 +333,7 @@ add_entrypoint_object(
   HDRS
     ../../powf.h
   COMPILE_OPTIONS
+    ${bitcode_link_flags}
     -O2
 )
 


        


More information about the libc-commits mailing list