X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=examples%2FCMakeLists.txt;h=5727066d6227b37e3615a9bc057a9cbf703322ca;hb=e3b2bd1e79c9c9d24490b6ddb2341afcf4210691;hp=f60c0eda030612b50e69b91b6532e3abf2a82f8d;hpb=778086caf71596d61b70db168e9f4b6598049cf0;p=oota-llvm.git diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index f60c0eda030..5727066d622 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -4,13 +4,10 @@ add_subdirectory(HowToUseJIT) add_subdirectory(Kaleidoscope) add_subdirectory(ModuleMaker) -if( NOT WIN32 ) +if(LLVM_ENABLE_EH AND (NOT WIN32) AND (NOT "${LLVM_NATIVE_ARCH}" STREQUAL "ARM")) add_subdirectory(ExceptionDemo) endif() -include(CheckIncludeFile) -check_include_file(pthread.h HAVE_PTHREAD_H) - if( HAVE_PTHREAD_H ) add_subdirectory(ParallelJIT) endif( HAVE_PTHREAD_H )