Skip to content

Commit

Permalink
restrict llvm-openmp-fortran to windows
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Oct 2, 2024
1 parent 888474e commit adf01c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 0 additions & 3 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ if [[ "${target_platform}" == "linux"* ]]; then
# This should have been defined by HandleLLVMOptions.cmake
# Not sure why it is not.
export CXXFLAGS="$CXXFLAGS -D__STDC_FORMAT_MACROS"
# not possible on osx due to build cycle, see meta.yaml
export EXTRA_CMAKE="-DLIBOMP_FORTRAN_MODULES=ON"
fi

if [[ "${PKG_VERSION}" == *rc* ]]; then
Expand All @@ -49,7 +47,6 @@ cmake -G Ninja \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH=$PREFIX \
${EXTRA_CMAKE} \
..

cmake --build .
6 changes: 4 additions & 2 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ build:
build:
- {{ stdlib("c") }}
- {{ compiler("cxx") }}
- {{ compiler("fortran") }}
- clang # [win]
- {{ compiler("fortran") }} # [win]
- clang # [win]
- cmake
- ninja
host:
Expand Down Expand Up @@ -80,6 +80,8 @@ outputs:
script: install_pkg.sh # [unix]
script: install_pkg.bat # [win]
build:
# restricted to windows for now
skip: true # [not win]
run_exports:
strong:
- {{ pin_subpackage("llvm-openmp", max_pin=None) }}
Expand Down

0 comments on commit adf01c1

Please sign in to comment.