Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ci_support/linux_64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ c_compiler_version:
c_stdlib:
- sysroot
c_stdlib_version:
- '2.12'
- '2.17'
cdt_name:
- cos6
channel_sources:
Expand Down
2 changes: 2 additions & 0 deletions .ci_support/win_64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ c_compiler:
- vs2019
c_stdlib:
- vs
c_stdlib_version:
- '2019'
channel_sources:
- conda-forge
channel_targets:
Expand Down
9 changes: 3 additions & 6 deletions recipe/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,24 @@ cd build

set "PROCESSOR_ARCHITECTURE=AMD64"

set "CXXFLAGS=%CXXFLAGS% -DAVOID_NATIVE_UINT128_T=1"
:: necessary when compiling with clang (which has a native uint128 type; msvc doesn't)
:: set "CXXFLAGS=%CXXFLAGS% -DAVOID_NATIVE_UINT128_T=1"

cmake -G "Ninja" ^
-DCMAKE_C_COMPILER=clang-cl ^
-DCMAKE_CXX_COMPILER=clang-cl ^
-DCMAKE_BUILD_TYPE="Release" ^
-DCMAKE_CXX_STANDARD=17 ^
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON ^
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
-DCMAKE_MODULE_PATH=../cmake/Modules ^
-DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX%;%LIBRARY_LIB%/clang/%PKG_VERSION% ^
-DLLVM_BUILD_MAIN_SRC_DIR=.. ^
-DLLVM_EXTERNAL_LIT=%LIBRARY_BIN%/lit ^
-DLLVM_LIT_ARGS=-v ^
-DLLVM_CMAKE_DIR=%LIBRARY_LIB%/cmake/llvm ^
-DCLANG_DIR=%LIBRARY_LIB%/cmake/clang ^
-DFLANG_INCLUDE_TESTS=OFF ^
-DMLIR_DIR=%LIBRARY_LIB%/cmake/mlir ^
-DTARGET_ARCHITECTURE=AMD64 ^
..\flang
if %ERRORLEVEL% neq 0 exit 1

cmake --build .
cmake --build . -j1
if %ERRORLEVEL% neq 0 exit 1
2 changes: 2 additions & 0 deletions recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
c_stdlib_version: # [linux]
- "2.17" # [linux]
8 changes: 5 additions & 3 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ source:
sha256: 2929f62d69dec0379e529eb632c40e15191e36f3bd58c2cb2df0413a0dc48651

build:
number: 0
number: 1
# intentionally only windows (main target) & linux (debuggability)
skip: true # [osx]
track_features:
Expand All @@ -18,10 +18,10 @@ build:
requirements:
build:
- {{ compiler('c') }}
- {{ stdlib('c') }}
- {{ compiler('cxx') }}
- cmake
- ninja
- sysroot_linux-64 ==2.17 # [linux64]
- mlir =={{ version }} # [build_platform != target_platform]
host:
- clangdev =={{ version }}
Expand All @@ -44,6 +44,7 @@ outputs:
build:
# for strong run-exports
- {{ compiler('c') }}
- {{ stdlib('c') }}
- {{ compiler('cxx') }}
host:
- clangdev =={{ version }}
Expand Down Expand Up @@ -91,6 +92,7 @@ outputs:
- ninja
# for strong run-exports
- {{ compiler('c') }}
- {{ stdlib('c') }}
- {{ compiler('cxx') }}
host:
- clangdev =={{ version }}
Expand All @@ -106,7 +108,7 @@ outputs:
- {{ pin_subpackage('libflang', exact=True) }}
- {{ pin_subpackage('libfortran-main', exact=True) }}
run:
- sysroot_{{ target_platform }} ==2.17 # [linux]
- sysroot_{{ target_platform }} >={{ c_stdlib_version }} # [linux]
- clangdev =={{ version }}
- llvm-openmp =={{ version }}
- {{ pin_subpackage('libflang', exact=True) }}
Expand Down