Skip to content

Commit

Permalink
Revert "Revert "Merge pull request numba#408 from stuartarchibald/wip…
Browse files Browse the repository at this point in the history
…/reenable_svml_llvm7""

This reverts commit 4cb0a92.
  • Loading branch information
stuartarchibald committed Dec 3, 2018
1 parent 932b488 commit ed0d44b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ffi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ add_definitions(${LLVM_DEFINITIONS})
# Look for SVML
set(CMAKE_REQUIRED_INCLUDES ${LLVM_INCLUDE_DIRS})

CHECK_INCLUDE_FILES("llvm/IR/SVML.gen" HAVE_SVML)
CHECK_INCLUDE_FILES("llvm/IR/SVML.inc" HAVE_SVML)
if(HAVE_SVML)
message(STATUS "SVML found")
add_definitions(-DHAVE_SVML)
Expand Down
2 changes: 1 addition & 1 deletion ffi/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.gen')
svml_indicator = os.path.join(include_dir, 'llvm', 'IR', 'SVML.inc')
if os.path.isfile(svml_indicator):
cxxflags = cxxflags + ['-DHAVE_SVML']
print('SVML detected')
Expand Down

0 comments on commit ed0d44b

Please sign in to comment.