[PATCH] D43106: [RISCV] Enable -fuse-int128 through cmake flag COMPILER_RT_HAS_FINT128_FLAG
Mandeep Singh Grang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 8 17:54:17 PST 2018
mgrang created this revision.
mgrang added reviewers: asb, kito-cheng, apazos.
Herald added subscribers: Sanitizers, llvm-commits, hintonda, mgorny.
If the cmake flag COMPILER_RT_HAS_FINT128_FLAG is specified, it will add -fuse-int128 on the compiler-rt
build lines. This can be used to build compiler-rt for RISCV32.
Related clang patch: https://reviews.llvm.org/D43105
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,7 @@
set(BUILTIN_CFLAGS "")
append_list_if(COMPILER_RT_HAS_STD_C11_FLAG -std=c11 BUILTIN_CFLAGS)
+ append_list_if(COMPILER_RT_HAS_FINT128_FLAG -fuse-int128 BUILTIN_CFLAGS)
# 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.133547.patch
Type: text/x-patch
Size: 501 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180209/6f53df54/attachment.bin>
More information about the llvm-commits
mailing list