Skip to content

Commit 3cfc644

Browse files
authored
[appveyor] fixes
1 parent 72956e8 commit 3cfc644

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

appveyor.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,32 @@ skip_commits:
2424
message: /\[av skip\]/
2525

2626
environment:
27+
global:
28+
CONDA_INSTALL_LOCN: C:\\Miniconda36-x64
2729
matrix:
2830
- COMPILER: clang-cl
29-
DYNAMIC_ARCH: ON
31+
WITH_FORTRAN: yes
3032
- COMPILER: clang-cl
33+
DYNAMIC_ARCH: ON
34+
WITH_FORTRAN: no
3135
- COMPILER: cl
3236

3337
install:
34-
- if [%COMPILER%]==[clang-cl] call C:\Miniconda36-x64\Scripts\activate.bat
38+
- if [%COMPILER%]==[clang-cl] call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
3539
- if [%COMPILER%]==[clang-cl] conda config --add channels conda-forge --force
36-
- if [%COMPILER%]==[clang-cl] conda install --yes clangdev ninja cmake
40+
- if [%WITH_FORTRAN%]==[yes] conda config --add channels isuruf/label/flang --force
41+
- if [%COMPILER%]==[clang-cl] conda install --yes --quiet clangdev ninja cmake
42+
- if [%WITH_FORTRAN%]==[yes] conda install --yes --quiet flangdev clangdev cmake
3743
- if [%COMPILER%]==[clang-cl] call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
44+
- if [%COMPILER%]==[clang-cl] set "LIB=%CONDA_INSTALL_LOCN%\Library\lib;%LIB%"
45+
- if [%COMPILER%]==[clang-cl] set "CPATH=%CONDA_INSTALL_LOCN%\Library\include;%CPATH%"
3846

3947
before_build:
4048
- echo Running cmake...
4149
- cd c:\projects\OpenBLAS
4250
- if [%COMPILER%]==[cl] cmake -G "Visual Studio 12 Win64" .
43-
- if [%COMPILER%]==[clang-cl] cmake -G "Ninja" -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_C_COMPILER=clang-cl .
51+
- if [%WITH_FORTRAN%]==[no] cmake -G "Ninja" -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_C_COMPILER=clang-cl .
52+
- if [%WITH_FORTRAN%]==[yes] cmake -G "NMake Makefiles" -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_C_COMPILER=clang-cl -DCMAKE_Fortran_COMPILER=flang -DBUILD_WITHOUT_LAPACK=no -DNOFORTRAN=0 .
4453
- if [%DYNAMIC_ARCH%]==[ON] cmake -DDYNAMIC_ARCH=ON .
4554

4655
build_script:

0 commit comments

Comments
 (0)