mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-22 04:43:53 +00:00
compiler/mlds_to_il.m:
compiler/mlds_to_ilasm.m:
compiler/mlds_to_managed.m:
compiler/il_peephole.m:
compiler/ilasm.m:
compiler/ilds.m:
Delete the modules making up the MLDS->IL code generator.
compiler/globals.m:
compiler/prog_data.m:
Delete IL as a target and foreign language.
compiler/prog_io_pragma.m:
Delete the max_stack_size/1 foreign proc attribute. This was only
ever required by the IL backend.
compiler/options.m
Delete options used for the IL backend.
compiler/write_deps_file.m:
Don't generate mmake targets for .il files etc.
compiler/*.m:
Conform to the above changes.
compiler/notes/compiler_design.html
compiler/notes/work_in_progress.html
Conform to the above changes.
library/*.m:
Delete IL foreign_proc and foreign_export pragmas.
README.DotNet:
Delete this file.
browser/Mmakefile:
compiler/Mmakefile:
deep_profiler/Mmakefile:
mdbcomp/Mmakefile:
mfilterjavac/Mmakefile:
profiler/Mmakefile:
runtime/Mmakefile:
slice/Mmakefile:
Conform the above changes.
configure.ac:
Don't check that IL is a supported foreign language when performing the
up-to-date check.
Delete the '--enable-dotnet-grades' option.
scripts/Mmake.vars.in:
Delete variables used for the IL backend (and in on case by the Aditi
backend).
scripts/Mercury.config.bootstrap.in:
scripts/Mercury.config.in:
scripts/Mmake.rules:
scripts/canonical_grade.sh-subr:
tools/bootcheck:
Delete stuff related to the 'il' and 'ilc' grades.
doc/reference_manual.texi:
Delete the documentation of the 'max_stack_size' option.
doc/user_guide.texi:
Delete stuff related to the IL backend.
tests/hard_coded/csharp_test.{m,exp}:
tests/invalid/foreign_type_missing.{m,err_exp}:
tests/valid/csharp_hello.m:
Delete these tests: they are no longer relevant.
tests/hard_coded/equality_pred_which_requires_boxing.m:
tests/hard_coded/foreign_import_module.m:
tests/hard_coded/foreign_import_module_2.m:
tests/hard_coded/foreign_type.m:
tests/hard_coded/foreign_type2.m:
tests/hard_coded/foreign_type3.m:
tests/hard_coded/intermod_foreign_type2.m:
tests/hard_coded/lp.m:
tests/hard_coded/user_compare.m:
tests/invalid/foreign_type_2.m:
tests/invalid/foreign_type_missing.{m,err_exp}:
tests/invalid/foreign_type_visibility.m:
tests/invalid/illtyped_compare.{m,err_exp}:
tests/submodules/external_unification_pred.m
tests/valid/big_foreign_type.m
tests/valid/solver_type_bug.m
tests/valid_seq/foreign_type_spec.m
tests/valid_seq/intermod_impure2.m
Delete IL foreign_procs where necessary.
tests/hard_coded/Mmakefile
tests/invalid/Mercury.options
tests/invalid/Mmakefile
tests/submodules/Mmakefile
tests/valid/Mercury.options
tests/valid/Mmake.valid.common
tests/valid/Mmakefile
tests/valid_seq/Mmakefile
tests/valid_seq/Mercury.options
Conform to the above changes.
200 lines
6.0 KiB
Makefile
200 lines
6.0 KiB
Makefile
#-----------------------------------------------------------------------------#
|
|
# vim: ts=8 sw=8 noexpandtab ft=make
|
|
#-----------------------------------------------------------------------------#
|
|
#
|
|
# This file is included in the Mmakefile of both $(TESTS_DIR)/valid
|
|
# and $(TESTS_DIR)/valid_seq. Both those directories contain test cases
|
|
# for which we check only that compilation succeeds, and don't test
|
|
# what its result is. The difference is that in the valid directory,
|
|
# each test file is self-contained and may be compiled in parallel,
|
|
# while the test cases valid_seq each consist of more than one module
|
|
# (some separate, some nested), and thus must be compiled sequentially,
|
|
# without parallelism.
|
|
#
|
|
# The Mmakefiles in both directories should define the following make variables
|
|
# beyond those required by $(TESTS_DIR)/Mmake.common.
|
|
#
|
|
# AGC_PROGS:
|
|
# The test cases testing the accurage gc system.
|
|
# TRAIL_PROGS:
|
|
# The test cases that only work in trailing grades.
|
|
# TYPECLASS_PROGS:
|
|
# The test cases testing the handling of typeclasses.
|
|
# NO_SPECIAL_PREDS_PROGS:
|
|
# The test cases testing the handling of --no-special-preds.
|
|
# C_PROGS:
|
|
# The test cases for which we should only produce a `.c' file.
|
|
# C_INTERFACE_PROGS:
|
|
# The test cases that test the operation of the foreign language interface
|
|
# with C.
|
|
# SOLVER_PROGS:
|
|
# The test cases that test the handling of solver type variables.
|
|
# DEEP_PROF_CAPABLE_PROGS:
|
|
# The test cases that test compilation with deep profiling enabled.
|
|
# LLDS_PROGS:
|
|
# The test cases that require debugging, which hasn't been implemented
|
|
# for the MLDS backend.
|
|
# TABLE_PROGS:
|
|
# The test cases that only work in grades that support tabling.
|
|
# PAR_CONJ_PROGS:
|
|
# The test cases that only work in grades that support parallel conjunction.
|
|
# CTGC_PROGS:
|
|
# The test cases that only work in grades that support compile-time
|
|
# garbage collection. Debugging is incompatible with ctgc.
|
|
# RESERVE_TAG_PROGS::
|
|
# The test cases that require num_tag_bits >= 1.
|
|
# CONSTRAINT_TYPECHECK_PROGS::
|
|
# Tests that use constraint based type checking.
|
|
# XXX These are never enabled.
|
|
# OTHER_PROGS:
|
|
# All the other test cases.
|
|
|
|
# The agc.* tests don't work in --high-level-code grades,
|
|
# except hl*.agc*, because they require grade-specific header
|
|
# files to be installed.
|
|
ifeq "$(findstring hl,$(GRADE))$(findstring .agc,$(GRADE))" "hl"
|
|
PROGS0 = $(TYPECLASS_PROGS) $(OTHER_PROGS)
|
|
else
|
|
# The agc.* tests don't work in the java, csharp or erlang grades.
|
|
# The agc.* tests also don't work in minimal model grades,
|
|
# because the collector doesn't scan the copied areas of the stacks.
|
|
ifneq "$(filter java% csharp% erlang%,$(GRADE))$(findstring mm,$(GRADE))" ""
|
|
PROGS0 = $(TYPECLASS_PROGS) $(OTHER_PROGS)
|
|
else
|
|
PROGS0 = $(AGC_PROGS) $(TYPECLASS_PROGS) $(OTHER_PROGS)
|
|
endif
|
|
endif
|
|
|
|
# Base grades `jump' and `fast' cannot be used with `--no-special-preds'.
|
|
ifneq "$(findstring asm_,$(GRADE))" ""
|
|
PROGS1 = $(NO_SPECIAL_PREDS_PROGS) $(PROGS0)
|
|
else
|
|
ifneq "$(findstring jump,$(GRADE))" ""
|
|
PROGS1 = $(PROGS0)
|
|
else
|
|
ifneq "$(findstring fast,$(GRADE))" ""
|
|
PROGS1 = $(PROGS0)
|
|
else
|
|
PROGS1 = $(NO_SPECIAL_PREDS_PROGS) $(PROGS0)
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
ifneq "$(findstring mm,$(GRADE))" ""
|
|
PROGS2 = $(PROGS1)
|
|
else
|
|
PROGS2 = $(PROGS1) $(TRAIL_PROGS)
|
|
endif
|
|
|
|
ifneq "$(filter java% csharp% erlang%,$(GRADE))$(findstring profdeep,$(GRADE))" ""
|
|
PROGS3 = $(PROGS2)
|
|
else
|
|
PROGS3 = $(PROGS2) $(TABLE_PROGS)
|
|
endif
|
|
|
|
ifeq "$(filter hl% java% csharp% erlang%,$(GRADE))" ""
|
|
PROGS4 = $(PROGS3) $(C_INTERFACE_PROGS) $(SOLVER_PROGS) \
|
|
$(DEEP_PROF_CAPABLE_PROGS) $(LLDS_PROGS)
|
|
else
|
|
PROGS4 = $(PROGS3)
|
|
endif
|
|
|
|
ifneq "$(findstring decldebug,$(GRADE))" ""
|
|
PROGS5 = $(PROGS4)
|
|
else
|
|
PROGS5 = $(PROGS4) $(PAR_CONJ_PROGS)
|
|
endif
|
|
|
|
ifeq "$(findstring debug,$(GRADE))" ""
|
|
PROGS6 = $(PROGS5) $(CTGC_PROGS)
|
|
else
|
|
PROGS6 = $(PROGS5)
|
|
endif
|
|
|
|
ifeq "$(filter java% csharp% il% erlang%,$(GRADE))" ""
|
|
OBJ_PROGS = $(PROGS6) $(RESERVE_TAG_PROGS)
|
|
else
|
|
OBJ_PROGS = $(PROGS6)
|
|
endif
|
|
|
|
ifneq "$(findstring tsw,$(GRADE))$(findstring tsc,$(GRADE))" ""
|
|
PROGS = $(OBJ_PROGS) $(C_PROGS)
|
|
else
|
|
PROGS = $(OBJ_PROGS) $(C_PROGS)
|
|
endif
|
|
|
|
# `mmc --make' doesn't expect subdirectories to appear in targets.
|
|
ifeq ($(MMAKE_USE_MMC_MAKE),yes)
|
|
OS_SUBDIR =
|
|
DLLS_SUBDIR =
|
|
CLASSES_SUBDIR =
|
|
else
|
|
OS_SUBDIR = $(os_subdir)
|
|
DLLS_SUBDIR = $(dlls_subdir)
|
|
CLASSES_SUBDIR = $(classes_subdir)
|
|
endif
|
|
|
|
ifeq ($(findstring csharp,$(GRADE)),csharp)
|
|
# XXX we should produce DLLs but currently that invokes the IL backend
|
|
TARGET_OBJ_EXT = cs
|
|
TARGET_OBJ_SUBDIR = $(DLLS_SUBDIR)
|
|
else
|
|
ifeq ($(findstring erlang,$(GRADE)),erlang)
|
|
TARGET_OBJ_EXT = beam
|
|
# Erlang backend currently requires `mmc --make'.
|
|
TARGET_OBJ_SUBDIR =
|
|
else
|
|
ifeq ($(findstring java,$(GRADE)),java)
|
|
TARGET_OBJ_EXT = class
|
|
TARGET_OBJ_SUBDIR = $(CLASSES_SUBDIR)
|
|
else
|
|
TARGET_OBJ_EXT = $(O)
|
|
TARGET_OBJ_SUBDIR = $(OS_SUBDIR)
|
|
endif
|
|
endif
|
|
endif
|
|
OBJS = $(OBJ_PROGS:%=$(TARGET_OBJ_SUBDIR)%.$(TARGET_OBJ_EXT))
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
# When compiling using the installed libraries, setting GRADEFLAGS
|
|
# may cause mgnuc to look for the `.mih' files for a non-installed grade.
|
|
# test_mercury runs the tests using the installed libraries, so GRADEFLAGS
|
|
# won't be set, but test_mercury runs the tests in at least one `.tr' grade
|
|
# on all machines, so it isn't a problem.
|
|
ifneq ($(origin WORKSPACE),undefined)
|
|
GRADEFLAGS_TRAIL = --use-trail
|
|
else
|
|
GRADEFLAGS_TRAIL =
|
|
endif
|
|
# Make sure GRADEFLAGS_TRAIL is passed to `mmc --make'.
|
|
export GRADEFLAGS_TRAIL
|
|
|
|
TESTS = $(sort $(PROGS))
|
|
include $(TESTS_DIR)/Mmake.common
|
|
|
|
# Module-specific options should go in Mercury.options so they can be found
|
|
# by `mmc --make'.
|
|
include Mercury.options
|
|
|
|
$(OBJ_PROGS:%=%.runtest): %.runtest: %.$(TARGET_OBJ_EXT) ;
|
|
|
|
$(C_PROGS:%=%.runtest): %.runtest: %.c ;
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
objs: $(OBJS)
|
|
|
|
printtests:
|
|
@echo $(PROGS)
|
|
|
|
printobjs:
|
|
@echo $(OBJS)
|
|
|
|
clean_local: clean_valid
|
|
|
|
clean_valid:
|
|
rm -f *.err *.h
|
|
|
|
#-----------------------------------------------------------------------------#
|