[test-suite] r278301 - cmake/400.perlbench: Increase stack size for darwin/iOS targets

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 10 15:47:13 PDT 2016


Author: matze
Date: Wed Aug 10 17:47:13 2016
New Revision: 278301

URL: http://llvm.org/viewvc/llvm-project?rev=278301&view=rev
Log:
cmake/400.perlbench: Increase stack size for darwin/iOS targets

This benchmark operated on the brink to stack overflow and would fail
when started with more environment variables / in a longer path.

Modified:
    test-suite/trunk/External/SPEC/CINT2006/400.perlbench/CMakeLists.txt

Modified: test-suite/trunk/External/SPEC/CINT2006/400.perlbench/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/External/SPEC/CINT2006/400.perlbench/CMakeLists.txt?rev=278301&r1=278300&r2=278301&view=diff
==============================================================================
--- test-suite/trunk/External/SPEC/CINT2006/400.perlbench/CMakeLists.txt (original)
+++ test-suite/trunk/External/SPEC/CINT2006/400.perlbench/CMakeLists.txt Wed Aug 10 17:47:13 2016
@@ -3,6 +3,10 @@ list(APPEND CFLAGS -std=gnu89)
 # We want reproducible builds
 list(APPEND CPPFLAGS -D__DATE__="XXX" -D__TIME__="XXX")
 list(APPEND LDFLAGS -lm)
+if(TARGET_OS STREQUAL "Darwin")
+  # Necessary for iOS
+  list(APPEND LDFLAGS -Xlinker -stack_size -Xlinker 0x8000000)
+endif()
 
 include_directories(${BENCHMARK_DIR}/src)
 




More information about the llvm-commits mailing list