From 68ce5500e55ee71aa811a9ae7548fd9e31c6e0c0 Mon Sep 17 00:00:00 2001 From: Stuart Archibald Date: Wed, 31 Oct 2018 16:00:49 +0000 Subject: [PATCH] Revert "Revert "Merge pull request #410 from stuartarchibald/wip/temp_disable_svml"" This reverts commit 11695ec95fa75be5aef18aa83468dec517bf7131. --- ffi/CMakeLists.txt | 2 +- ffi/build.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ffi/CMakeLists.txt b/ffi/CMakeLists.txt index a387fea35..492a1b4a0 100755 --- a/ffi/CMakeLists.txt +++ b/ffi/CMakeLists.txt @@ -22,7 +22,7 @@ add_definitions(${LLVM_DEFINITIONS}) # Look for SVML set(CMAKE_REQUIRED_INCLUDES ${LLVM_INCLUDE_DIRS}) -CHECK_INCLUDE_FILES("llvm/IR/SVML.inc" HAVE_SVML) +CHECK_INCLUDE_FILES("llvm/IR/SVML.TEMP_DISABLED" HAVE_SVML) if(HAVE_SVML) message(STATUS "SVML found") add_definitions(-DHAVE_SVML) diff --git a/ffi/build.py b/ffi/build.py index cf2bd4bb2..8af2e68c1 100755 --- a/ffi/build.py +++ b/ffi/build.py @@ -130,7 +130,7 @@ def main_posix(kind, library_ext): # look for SVML include_dir = run_llvm_config(llvm_config, ['--includedir']).strip() - svml_indicator = os.path.join(include_dir, 'llvm', 'IR', 'SVML.inc') + svml_indicator = os.path.join(include_dir, 'llvm', 'IR', 'SVML.TEMP_DISABLED') if os.path.isfile(svml_indicator): cxxflags = cxxflags + ['-DHAVE_SVML'] print('SVML detected')