Skip to content

Commit

Permalink
Update CMakeLists.txt in BCLoad (#1330)
Browse files Browse the repository at this point in the history
  • Loading branch information
motabbara authored Jul 15, 2023
1 parent c9f46f0 commit 4a44f8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Clang-Format

on: [push]

on:
push:
pull_request:

jobs:
build:
name: Format
Expand Down
4 changes: 4 additions & 0 deletions enzyme/BCLoad/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ else()
set(BC_LOAD_FLAGS2 "${BC_LOAD_FLAGS} -Xclang -no-opaque-pointers")
endif()

if (APPLE)
set(BC_LOAD_FLAGS2 "${BC_LOAD_FLAGS} --sysroot=${CMAKE_OSX_SYSROOT}")
endif()

if (NOT ("${BC_LOAD_HEADER}" STREQUAL ""))
add_custom_target(blasheaders mkdir -p "${CMAKE_CURRENT_BINARY_DIR}/gsl" && cp ${BC_LOAD_HEADER} "${CMAKE_CURRENT_BINARY_DIR}/gsl/blas_headers.h")
set_target_properties(blasheaders PROPERTIES EXCLUDE_FROM_ALL TRUE)
Expand Down

0 comments on commit 4a44f8a

Please sign in to comment.