[PATCH] D71684: [SPECCPU2017] Add CXXPORTABILITY flags for 526.blender_r

Yuanfang Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 18 18:09:31 PST 2019


ychen created this revision.
ychen added reviewers: Meinersbur, kristof.beyls, MatzeB.
Herald added subscribers: llvm-commits, mgorny.
Herald added a project: LLVM.

as suggested by `config/Example-aocc-linux-x86.cfg` (v1.1) or `config/Example-clang-llvm-linux-x86.cfg` (v1.0)
Otherwise, it may fail to compile.


Repository:
  rT test-suite

https://reviews.llvm.org/D71684

Files:
  External/SPEC/CFP2017rate/526.blender_r/CMakeLists.txt


Index: External/SPEC/CFP2017rate/526.blender_r/CMakeLists.txt
===================================================================
--- External/SPEC/CFP2017rate/526.blender_r/CMakeLists.txt
+++ External/SPEC/CFP2017rate/526.blender_r/CMakeLists.txt
@@ -15,6 +15,10 @@
   -DHAVE_UNSIGNED_CHAR
 )
 add_compile_options(-funsigned-char)
+
+# config/Example-clang-llvm-linux-x86.cfg suggests that this is needed.
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__BOOL_DEFINED")
+
 speccpu2017_add_include_dirs(
   specrand
   blender/extern/binreloc/include


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71684.234646.patch
Type: text/x-patch
Size: 547 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191219/f7422b94/attachment.bin>


More information about the llvm-commits mailing list