Skip to content

Commit

Permalink
testsuite: build codegen only when the native compiler is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
shindere committed Apr 26, 2018
1 parent 65090a8 commit f3099e9
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions testsuite/tools/Makefile
Expand Up @@ -38,15 +38,18 @@ codegen_OBJECTS=parsecmmaux.cmo parsecmm.cmo lexcmm.cmo codegen_main.cmo

codegen_ADD_COMPFLAGS=$(codegen_INCLUDES) -w -40 -g

ifeq "$(CCOMPTYPE)-$(ARCH)" "msvc-amd64"
targets := $(expect_PROG)

ifneq "$(ARCH)" "none"
targets += codegen
ifneq "$(CCOMPTYPE)-$(ARCH)" "msvc-amd64"
# The asmgen tests are not ported to MSVC64 yet
# so do not compile any arch-specific module
arch_target :=
else
arch_target := asmgen_$(ARCH).$(O)
targets += asmgen_$(ARCH).$(O)
endif
endif

all: $(expect_PROG) codegen $(arch_target)
all: $(targets)

$(expect_PROG): $(expect_LIBRARIES:=.cma) $(expect_MAIN).cmo
@$(OCAMLC) -linkall -o $@ $^
Expand Down

0 comments on commit f3099e9

Please sign in to comment.