summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/cmake
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2015-07-24 21:24:48 +0000
committerHans Wennborg <hans@hanshq.net>2015-07-24 21:24:48 +0000
commitfd4dfdcea1c9f52f4fc75c5c6d3d4acc078eb9f2 (patch)
treec9da1a5549a69e480ed0e75c9761a1c028787354 /openmp/runtime/cmake
parent7679afda82bb2401fe12f1a5d6c55876cfa8d04c (diff)
downloadbcm5719-llvm-fd4dfdcea1c9f52f4fc75c5c6d3d4acc078eb9f2.tar.gz
bcm5719-llvm-fd4dfdcea1c9f52f4fc75c5c6d3d4acc078eb9f2.zip
LibompMicroTests.cmake: Invoke 'test' instead of using '[ x -eq y ]'
I was getting this cmake error on Mac OS X: CMake Error: Error in cmake code at /tmp/openmp/runtime/cmake/LibompMicroTests.cmake:140: Parse error. Function missing ending ")". Instead found bad character with text "[". Perhaps invoking 'test' is less confusing for cmake. Differential Revision: http://reviews.llvm.org/D11493 llvm-svn: 243165
Diffstat (limited to 'openmp/runtime/cmake')
-rw-r--r--openmp/runtime/cmake/LibompMicroTests.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/runtime/cmake/LibompMicroTests.cmake b/openmp/runtime/cmake/LibompMicroTests.cmake
index 300422bbfca..bf5afaba7f4 100644
--- a/openmp/runtime/cmake/LibompMicroTests.cmake
+++ b/openmp/runtime/cmake/LibompMicroTests.cmake
@@ -137,7 +137,7 @@ add_custom_command(
OUTPUT test-relo/.success test-relo/readelf.log
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/test-relo
COMMAND readelf -d ${LIBOMP_OUTPUT_DIRECTORY}/${LIBOMP_LIB_FILE} > test-relo/readelf.log
- COMMAND grep -e TEXTREL test-relo/readelf.log \; [ $$? -eq 1 ]
+ COMMAND grep -e TEXTREL test-relo/readelf.log \; test $$? -eq 1
COMMAND ${CMAKE_COMMAND} -E touch test-relo/.success
DEPENDS omp
)
OpenPOWER on IntegriCloud