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
12 changes: 0 additions & 12 deletions recipe/activate.bat

This file was deleted.

17 changes: 0 additions & 17 deletions recipe/activate.sh

This file was deleted.

4 changes: 0 additions & 4 deletions recipe/deactivate.bat

This file was deleted.

5 changes: 0 additions & 5 deletions recipe/deactivate.sh

This file was deleted.

3 changes: 0 additions & 3 deletions recipe/hello_world.f90

This file was deleted.

13 changes: 0 additions & 13 deletions recipe/install_flang.bat
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
@echo on

cd %SRC_DIR%\build
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64

cmake --build . --target install
if %ERRORLEVEL% neq 0 exit 1

for /f "tokens=1 delims=." %%i in ("%PKG_VERSION%") do (
set "MAJOR_VER=%%i"
)

:: Copy the [de]activate scripts to %PREFIX%\etc\conda\[de]activate.d.
:: This will allow them to be run on environment activation.
FOR %%F IN (activate deactivate) DO (
IF NOT EXIST %PREFIX%\etc\conda\%%F.d MKDIR %PREFIX%\etc\conda\%%F.d
COPY %RECIPE_DIR%\%%F.bat %PREFIX%\etc\conda\%%F.d\%PKG_NAME%_%%F.bat
sed -i 's/@MAJOR_VER@/%MAJOR_VER%/g' %PREFIX%\etc\conda\%%F.d\%PKG_NAME%_%%F.bat
)
6 changes: 0 additions & 6 deletions recipe/install_flang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,3 @@ set -ex
cd $SRC_DIR/build

cmake --install .

for CHANGE in "activate" "deactivate"
do
mkdir -p "${PREFIX}/etc/conda/${CHANGE}.d"
cp "${RECIPE_DIR}/${CHANGE}.sh" "${PREFIX}/etc/conda/${CHANGE}.d/${PKG_NAME}_${CHANGE}.sh"
done
33 changes: 4 additions & 29 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{% set version = "19.1.0.rc3" %}
{% set version = "19.1.0.rc4" %}

package:
name: flang-split
version: {{ version }}

source:
url: https://github.com/llvm/llvm-project/archive/refs/tags/llvmorg-{{ version.replace(".rc", "-rc") }}.tar.gz
sha256: 57f926edf60a92947fa9b8b0adfdf3c6f2182a4ecf1c929176218eef619d7411
sha256: 570ea538eae9939e1b008c4e8055227dae3ab58054c74707ad1d5a8cb51536c3

build:
number: 0
Expand Down Expand Up @@ -63,8 +63,6 @@ outputs:
build:
- cmake
- ninja
- sed # [unix]
- m2-sed # [win]
# for strong run-exports
- {{ compiler('c') }}
- {{ stdlib('c') }}
Expand All @@ -85,35 +83,12 @@ outputs:
- sysroot_{{ target_platform }} >={{ c_stdlib_version }} # [linux]
- clang =={{ version }}
- compiler-rt =={{ version }} # [win]
- lld # [win]
- {{ pin_subpackage('libflang', exact=True) }}
test:
requires:
- {{ compiler('c') }} # [win]
- {{ compiler('cxx') }} # [win]
- grep # [unix]
- m2-grep # [win]
files:
- hello_world.f90
commands:
# see naming discussion: https://discourse.llvm.org/t/reviving-rename-flang-new-to-flang/68130/2
# - flang hello_world.f90
- flang-new $FFLAGS hello_world.f90 # [unix]
- flang-new %FFLAGS% hello_world.f90 %LDFLAGS% # [win]
- ./a.out # [unix]
- a.exe # [win]
# check if activation worked
- env | grep "FC="

- name: flang_{{ target_platform }}
run_exports:
strong:
- libflang >={{ version }}
requirements:
- {{ pin_subpackage('flang', exact=True) }}
test:
commands:
- echo "tested in other outputs"
- test -f $PREFIX/bin/flang-new # [linux]
- if not exist %LIBRARY_BIN%\flang-new.exe exit 1 # [win]

about:
home: https://flang.llvm.org
Expand Down