[Openmp-commits] [openmp] r237618 - Fix for testsuite including omp.h

Jonathan Peyton jonathan.l.peyton at intel.com
Mon May 18 14:38:50 PDT 2015


Author: jlpeyton
Date: Mon May 18 16:38:50 2015
New Revision: 237618

URL: http://llvm.org/viewvc/llvm-project?rev=237618&view=rev
Log:
Fix for testsuite including omp.h

When calling the testsuite, clang could not locate omp.h.  The
proper environment variable was modified to include:
exports/common/omp.h.  Documentation was also updated to be more
clear.

Patch by Sunita Chandrasekaran

Modified:
    openmp/trunk/runtime/Makefile
    openmp/trunk/testsuite/README_LLVM_OPENMP

Modified: openmp/trunk/runtime/Makefile
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/Makefile?rev=237618&r1=237617&r2=237618&view=diff
==============================================================================
--- openmp/trunk/runtime/Makefile (original)
+++ openmp/trunk/runtime/Makefile Mon May 18 16:38:50 2015
@@ -61,6 +61,7 @@ test: omp
         if [ -d "$(omp_root)$(SLASH)..$(SLASH)testsuite$(SLASH)LLVM-IR" ] ; then \
 			export TESTSUITE_TEMP=$(realpath $(omp_root))$(SLASH)tmp ; \
 			export LIBRARY_PATH=$(libiomp5_path):$(LIBRARY_PATH) ; \
+			export INCLUDE_PATH=$(libiomp5_path)$(SLASH)..$(SLASH)..$(SLASH)common$(CLASH)include:$(INCLUDE_PATH) ; \
 			export LD_LIBRARY_PATH=$(libiomp5_path):$(LD_LIBRARY_PATH) ; \
 			export DYLD_LIBRARY_PATH=$(libiomp5_path):$(DYLD_LIBRARY_PATH) ; \
 			cd $(omp_root)$(SLASH)..$(SLASH)testsuite ; \

Modified: openmp/trunk/testsuite/README_LLVM_OPENMP
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/testsuite/README_LLVM_OPENMP?rev=237618&r1=237617&r2=237618&view=diff
==============================================================================
--- openmp/trunk/testsuite/README_LLVM_OPENMP (original)
+++ openmp/trunk/testsuite/README_LLVM_OPENMP Mon May 18 16:38:50 2015
@@ -8,7 +8,7 @@
 
 Two new files have been added to openmp/runtime: check-openmp.pl and check-openmp-test.pl 
 Go to /openmp/runtime, run:
-make test
+make test compiler=clang
 make test-clean  
 
 ------------------------------------------------------------------------------





More information about the Openmp-commits mailing list