Skip to content

Commit d89602a

Browse files
author
Xin Liu
committedJan 10, 2024
8322982: CTW fails to build after 8308753
Reviewed-by: shade, phh
1 parent 3bd9042 commit d89602a

File tree

1 file changed

+4
-7
lines changed
  • test/hotspot/jtreg/testlibrary/ctw

1 file changed

+4
-7
lines changed
 

‎test/hotspot/jtreg/testlibrary/ctw/Makefile

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2013, 2023, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2013, 2024, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -42,21 +42,18 @@ JAVAC = $(JDK_HOME)/bin/javac
4242
JAR = $(JDK_HOME)/bin/jar
4343

4444
SRC_FILES = $(shell find $(SRC_DIR) -name '*.java')
45-
LIB_FILES = $(shell find $(TESTLIBRARY_DIR)/jdk/test/lib/ \
45+
# Exclude files that need '--enable-preview' to compile.
46+
LIB_FILES = $(filter-out %ModuleInfoWriter.java, $(shell find $(TESTLIBRARY_DIR)/jdk/test/lib/ \
4647
$(TESTLIBRARY_DIR)/jdk/test/lib/process \
4748
$(TESTLIBRARY_DIR)/jdk/test/lib/util \
4849
$(TESTLIBRARY_DIR)/jtreg \
49-
-maxdepth 1 -name '*.java')
50+
-maxdepth 1 -name '*.java'))
5051
WB_SRC_FILES = $(shell find $(TESTLIBRARY_DIR)/jdk/test/lib/compiler $(TESTLIBRARY_DIR)/jdk/test/whitebox -name '*.java')
5152
WB_CLASS_FILES := $(subst $(TESTLIBRARY_DIR)/,,$(WB_SRC_FILES))
5253
WB_CLASS_FILES := $(patsubst %.java,%.class,$(WB_CLASS_FILES))
5354
EXPORTS=--add-exports java.base/jdk.internal.jimage=ALL-UNNAMED \
5455
--add-exports java.base/jdk.internal.misc=ALL-UNNAMED \
55-
--add-exports java.base/jdk.internal.module=ALL-UNNAMED \
5656
--add-exports java.base/jdk.internal.reflect=ALL-UNNAMED \
57-
--add-exports java.base/jdk.internal.classfile=ALL-UNNAMED \
58-
--add-exports java.base/jdk.internal.classfile.attribute=ALL-UNNAMED \
59-
--add-exports java.base/jdk.internal.classfile.constantpool=ALL-UNNAMED \
6057
--add-exports java.base/jdk.internal.access=ALL-UNNAMED
6158

6259
CTW_MAIN_CLASS = sun.hotspot.tools.ctw.CompileTheWorld

0 commit comments

Comments
 (0)
Please sign in to comment.