OS400: don't delete source files when building with debug

Debugger not able to work against curl *SRVPGM when using temporary
source files.

Fixes #15445
Closes #15446
This commit is contained in:
Jon Rumsey 2024-10-28 17:53:01 +00:00 committed by Daniel Stenberg
parent 0d475da1c4
commit b57e9c8f9b
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -189,8 +189,8 @@ make_module()
echo "#pragma convert(819)"
echo "#line 1"
cat "${2}"
} > __tmpsrcf.c
CMD="CRTCMOD MODULE(${TARGETLIB}/${1}) SRCSTMF('__tmpsrcf.c')"
} > "${1}"__819.c
CMD="CRTCMOD MODULE(${TARGETLIB}/${1}) SRCSTMF('${1}__819.c')"
CMD="${CMD} SYSIFCOPT(*IFS64IO *ASYNCSIGNAL)"
# CMD="${CMD} OPTION(*INCDIRFIRST *SHOWINC *SHOWSYS)"
CMD="${CMD} OPTION(*INCDIRFIRST)"
@ -228,7 +228,9 @@ make_module()
fi
CLcommand "${CMD}"
rm -f __tmpsrcf.c
if [ "${DEBUG}" = "*NONE" ]
then rm -f "${1}"__819.c
fi
# shellcheck disable=SC2034
LINK=YES
}