From 99b11c99393e2d5e52347c456c4370f842c0fb49 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 17 Aug 2021 15:25:09 +0530 Subject: build-aux: Preserve only the LIBRARY_PATH environment in cwltool runs. * build-aux/generate-cwl-output.sh.in: Preserve only the LIBRARY_PATH environment variable. --- build-aux/generate-cwl-output.sh.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build-aux') diff --git a/build-aux/generate-cwl-output.sh.in b/build-aux/generate-cwl-output.sh.in index 6f56996..ca5803e 100755 --- a/build-aux/generate-cwl-output.sh.in +++ b/build-aux/generate-cwl-output.sh.in @@ -28,9 +28,9 @@ output_file=$(basename $cwl_file .cwl).out { echo "\$ ccwl compile $(basename $cwl_file .cwl).scm > $cwl_file" echo "\$ cwltool $cwl_file $@" - # On Guix, workflows involving gcc need the - # --preserve-entire-environment flag. - @CWLTOOL@ --preserve-entire-environment --outdir cwl-output $cwl_file "$@" 2>&1 \ + # On Guix, workflows involving gcc need to preserve the + # LIBRARY_PATH environment variable. + @CWLTOOL@ --preserve-environment LIBRARY_PATH --outdir cwl-output $cwl_file "$@" 2>&1 \ | @SED@ '1,2d' \ | @SED@ 's|\[1;30mINFO\[0m ||g' \ | @SED@ "s|$(pwd)|/home/manimekalai|g" -- cgit v1.2.3