[PATCH] D43106: [RISCV] Enable -fforce-enable-int128 through cmake flag COMPILER_RT_HAS_FINT128_FLAG

Mandeep Singh Grang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 21 10:44:14 PST 2018


mgrang updated this revision to Diff 135295.
mgrang retitled this revision from "[RISCV] Enable -fuse-int128 through cmake flag COMPILER_RT_HAS_FINT128_FLAG" to "[RISCV] Enable -fforce-enable-int128 through cmake flag COMPILER_RT_HAS_FINT128_FLAG".
mgrang added a comment.

Limited patch only to RISCV target as per suggestions.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D43106

Files:
  lib/builtins/CMakeLists.txt


Index: lib/builtins/CMakeLists.txt
===================================================================
--- lib/builtins/CMakeLists.txt
+++ lib/builtins/CMakeLists.txt
@@ -502,6 +502,9 @@
   set(BUILTIN_CFLAGS "")
 
   append_list_if(COMPILER_RT_HAS_STD_C11_FLAG -std=c11 BUILTIN_CFLAGS)
+  if("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "riscv")
+    append_list_if(COMPILER_RT_HAS_FINT128_FLAG -fforce-enable-int128 BUILTIN_CFLAGS)
+  endif()
 
   # These flags would normally be added to CMAKE_C_FLAGS by the llvm
   # cmake step. Add them manually if this is a standalone build.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43106.135295.patch
Type: text/x-patch
Size: 583 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180221/293e7a86/attachment.bin>


More information about the llvm-commits mailing list