[PATCH] D49487: [mips] Fix compile options for tramp3d-v4 test

Aleksandar Beserminji via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 1 08:08:58 PDT 2018


abeserminji updated this revision to Diff 158544.
abeserminji retitled this revision from "[mips] Fix Makefile for tramp3d-v4 test" to "[mips] Fix compile options for tramp3d-v4 test".
abeserminji added a comment.
Herald added a subscriber: mgorny.

Comments addressed.


https://reviews.llvm.org/D49487

Files:
  MultiSource/Benchmarks/tramp3d-v4/CMakeLists.txt
  MultiSource/Benchmarks/tramp3d-v4/Makefile


Index: MultiSource/Benchmarks/tramp3d-v4/Makefile
===================================================================
--- MultiSource/Benchmarks/tramp3d-v4/Makefile
+++ MultiSource/Benchmarks/tramp3d-v4/Makefile
@@ -14,6 +14,7 @@
 # Mips needs a bit more compilation time when Mips64r6 and MSA are used
 # together.
 RUNTIMELIMIT := 700
+CPPFLAGS := "-mxgot"
 endif
 
 include	../../Makefile.multisrc
Index: MultiSource/Benchmarks/tramp3d-v4/CMakeLists.txt
===================================================================
--- MultiSource/Benchmarks/tramp3d-v4/CMakeLists.txt
+++ MultiSource/Benchmarks/tramp3d-v4/CMakeLists.txt
@@ -6,5 +6,8 @@
 else()
   set(RUN_OPTIONS --cartvis 1.0 0.0 --rhomin 1e-8 -n 10 --domain 32 32 32)
 endif()
+if("${ARCH}" STREQUAL "Mips")
+	list(APPEND CXXFLAGS -mxgot)
+endif()
 set(FP_ABSTOLERANCE 0.0000001)
 llvm_multisource()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49487.158544.patch
Type: text/x-patch
Size: 863 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180801/c4c61404/attachment.bin>


More information about the llvm-commits mailing list