Skip to content

Commit

Permalink
32/64 test binary makefile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriy-chumak committed Mar 5, 2023
1 parent 8f56c96 commit 848397a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion configure.mk
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ exists = $(shell echo "\
return $3();\
}" |$(CC) -xc - $4\
-include $2\
-o /dev/null 2>/dev/null && echo 1)
-o /dev/null 2>/dev/null && echo 1 || echo 0)

sizeof = $(shell SIZEOF=`mktemp /tmp/sizeof.XXXXXXXXX`; \
trap "{ rm -f $$SIZEOF; }" EXIT; \
Expand Down
4 changes: 1 addition & 3 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ WINEQ := $(shell which wine 1>/dev/null 2>/dev/null && echo 1)
ok:="\033[1;32mok\033[0m"
failed:="\033[1;31mfailed\033[0m"

# GNU/Linux (base development system) specific defines:
ifeq ($(UNAME),Linux)
# 32-/64-bit test environment setup
HAS_32CDEFS ?= $(call exists,-m32,sys/cdefs.h,exit)
HAS_64CDEFS ?= $(call exists,-m64,sys/cdefs.h,exit)
endif

ifeq ($(HAS_64CDEFS),1)
vm64 = printf "64 " && ./vm64 repl <$$F | diff - $$F.ok
Expand Down

0 comments on commit 848397a

Please sign in to comment.