changeset 663:127b569978cc default tip

- another tweak handling clang trying to be too smart (see last commit)
author Tassilo Philipp
date Sun, 24 Mar 2024 13:52:44 +0100
parents 2012dee097d3
children
files test/dynload_plain/Makefile.embedded test/dynload_plain/Makefile.generic
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/test/dynload_plain/Makefile.embedded	Thu Mar 21 09:02:44 2024 +0100
+++ b/test/dynload_plain/Makefile.embedded	Sun Mar 24 13:52:44 2024 +0100
@@ -27,8 +27,8 @@
 
 ${TEST_U8_SO}:
 	echo 'int dynload_plain_testfunc() { return 5; }' | ${CC} ${CFLAGS} -`[ \`uname\` = Darwin ] && echo dynamiclib || echo shared` -x c - -o ${TEST_U8_SO}
-	# clang tries to be too smart, appending .exe on some platforms (e.g. *nix based mingw cross builds)
-	[ -f "${TEST_U8_SO}.exe" ] && mv "${TEST_U8_SO}.exe" "${TEST_U8_SO}"
+	# clang tries to be too smart, appending .exe on some platforms (e.g. *nix based mingw cross builds), despite -o being explicity
+	[ -f "${TEST_U8_SO}.exe" ] && mv "${TEST_U8_SO}.exe" "${TEST_U8_SO}" || true
 
 clean:
 	rm -f ${APP} ${OBJS} ${TEST_U8_SO}
--- a/test/dynload_plain/Makefile.generic	Thu Mar 21 09:02:44 2024 +0100
+++ b/test/dynload_plain/Makefile.generic	Sun Mar 24 13:52:44 2024 +0100
@@ -21,8 +21,8 @@
 	${CC} ${CFLAGS} ${LDFLAGS} ${OBJS} ${LDLIBS_D} ${LDLIBS} -o ${APP}
 ${TEST_U8_SO}:
 	echo 'int dynload_plain_testfunc() { return 5; }' | ${CC} ${CFLAGS} -`[ \`uname\` = Darwin ] && echo dynamiclib || echo shared` -x c - -o ${TEST_U8_SO}
-	# clang tries to be too smart, appending .exe on some platforms (e.g. *nix based mingw cross builds)
-	[ -f "${TEST_U8_SO}.exe" ] && mv "${TEST_U8_SO}.exe" "${TEST_U8_SO}"
+	# clang tries to be too smart, appending .exe on some platforms (e.g. *nix based mingw cross builds), despite -o being explicity
+	[ -f "${TEST_U8_SO}.exe" ] && mv "${TEST_U8_SO}.exe" "${TEST_U8_SO}" || true
 clean:
 	rm -f ${APP} ${OBJS} ${TEST_C_LD} ${TEST_U8_SO}
 install: