@echo "#define HOST_VENDOR \"$(TargetVendor_CPP)\"" >> $@
@echo "#define TARGET_VENDOR \"$(TargetVendor_CPP)\"" >> $@
@echo >> $@
+ifeq "$(GhcWithTablesNextToCode)" "YES"
+ @echo "#define TABLES_NEXT_TO_CODE 1" >> $@
+endif
+ @echo >> $@
@echo "#endif /* __PLATFORM_H__ */" >> $@
@echo "Done."
ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
# MSys (...and cygwin with a mingw toolchain)
-SCRIPT_SHELL = $(shell cd /bin; pwd -W 2>/dev/null | echo "/bin")/sh
+SCRIPT_SHELL = $(shell cd /bin; pwd -W 2>/dev/null || echo "/bin")/sh
else
# Cygwin and Unix
SCRIPT_SHELL = /bin/sh