From c75a6c847b294752ab32ed92903a6e777c776312 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Wed, 20 Sep 2023 15:06:36 +0200 Subject: [PATCH] Fix copy command --- recipe/bld.bat | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/recipe/bld.bat b/recipe/bld.bat index 305cebfd..3649d105 100644 --- a/recipe/bld.bat +++ b/recipe/bld.bat @@ -3,10 +3,10 @@ mkdir builddir :: flang 17 still uses "temporary" name -cp %RECIPE_DIR%\flang-wrapper.bat %LIBRARY_PREFIX%\bin -set "FC=flang-wrapper.bat" +copy %RECIPE_DIR%\flang-wrapper.bat %LIBRARY_PREFIX%\bin +if !errorlevel! neq 0 exit /b !errorlevel! -set "CFLAGS=%CFLAGS% -std=gnu99" +set "FC=flang-wrapper.bat" :: -wnx flags mean: --wheel --no-isolation --skip-dependency-check %PYTHON% -m build -w -n -x ^ @@ -15,4 +15,4 @@ set "CFLAGS=%CFLAGS% -std=gnu99" -Csetup-args=-Dlapack=lapack ^ -Csetup-args=-Dfortran_std=none ^ -Csetup-args=-Duse-g77-abi=true -if %ERRORLEVEL% neq 0 exit 1 +if !errorlevel! neq 0 exit /b !errorlevel!