Files
mercury/extras/posix/Mmakefile
Julien Fischer 27a7199efb Replace workarounds in the POSIX binding.
Delete the workarounds for FD_{ZERO,SET,ISSET,CLR} in the POSIX binding.  The
stated reason for their existence was that the Linux headers defined them using
inline assembler that conflicted with our use of global register variables.

Since the runtime (now) defines a wrapper for FD_ZERO, use the runtime's
version instead of having the binding define its own.  We've been using
FD_{SET,ISSET} in the runtime without issues for many years.  (On my system,
they and FD_CLR are not defined using inline assembler anyway.)

extras/posix/posix_workarounds.{ch}:
    Delete this files.

extras/posix/posix.select.m:
    Use MR_fd_zero in place of ME_fd_zero.

    Use FD_{SET,ISSET,CLR} directly.

extras/posix/Makefile:
extras/posix/Mercury.options:
extras/posix/Mmakefile:
    Conform to the above changes.
2019-03-22 10:17:15 +00:00

33 lines
982 B
Plaintext

#-----------------------------------------------------------------------------#
# vim: ts=8 sw=8 noexpandtab
#-----------------------------------------------------------------------------#
# Copyright (C) 2000, 2002-2004 The University of Melbourne.
# Copyright (C) 2015, 2018 The Mercury team.
# This file is distributed under the terms specified in COPYING.LIB.
#-----------------------------------------------------------------------------#
# This is file exists so that do an `mmake' from the top-level of the extras
# distribution works. The actual work of building this library is done
# using the Makefile and mmc --make. This file just forwards all the work
# to there.
MAIN_TARGET=build
.PHONY: build
build:
$(MAKE) build
# The depend target does nothing, mmc --make will handle dependencies
# automatically.
#
.PHONY: depend
depend:
.PHONY: install
install:
$(MAKE) install INSTALL_PREFIX=$(INSTALL_PREFIX)/extras
.PHONY: realclean
realclean:
$(MAKE) realclean