Skip to content

Commit

Permalink
remove -nostdlib from flags; unsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Aug 4, 2024
1 parent ba62918 commit 35b5599
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion recipe/activate.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ set "LD=lld-link.exe"

:: following https://github.com/conda-forge/clang-win-activation-feedstock/blob/main/recipe/activate-clang_win-64.bat
set "FFLAGS=-D_CRT_SECURE_NO_WARNINGS -fms-runtime-lib=dll -fuse-ld=lld -I%LIBRARY_INC%"
set "LDFLAGS=-nostdlib -Wl,-defaultlib:%CONDA_PREFIX:\=/%/lib/clang/@MAJOR_VER@/lib/windows/clang_rt.builtins-x86_64.lib"
set "LDFLAGS=-Wl,-defaultlib:%CONDA_PREFIX:\=/%/lib/clang/@MAJOR_VER@/lib/windows/clang_rt.builtins-x86_64.lib"
6 changes: 3 additions & 3 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ source:
sha256: 09c08693a9afd6236f27a2ebae62cda656eba19021ef3f94d59e931d662d4856

build:
number: 4
number: 5
# intentionally only windows (main target) & linux (debuggability)
skip: true # [osx]

Expand Down Expand Up @@ -120,8 +120,8 @@ outputs:
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 # [win]
- 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
Expand Down

0 comments on commit 35b5599

Please sign in to comment.