File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ lto = true
16
16
[package .metadata .openjdk ]
17
17
# Our CI matches the following line and extract mmtk/openjdk. If this line is updated, please check ci yaml files and make sure it works.
18
18
openjdk_repo = " https://github.com/mmtk/openjdk.git"
19
- openjdk_version = " 67d5d2b16aacb2ea948552fab2323ebd0abbe924 "
19
+ openjdk_version = " ca90b43f0f51d9ddf754e6ab134c5030cf54118b "
20
20
21
21
[dependencies ]
22
22
libc = " 0.2"
Original file line number Diff line number Diff line change
1
+ # Misc variables
2
+ YELLOW='\033[1;33m'
3
+ NC='\033[0m'
4
+
1
5
# THIRD_PARTY_HEAP points to mmtk-openjdk/openjdk
2
6
MMTK_RUST_ROOT = $(THIRD_PARTY_HEAP)/../mmtk
3
7
MMTK_CPP_ROOT = $(THIRD_PARTY_HEAP)
4
8
9
+ # Grab OpenJDK version specified in mmtk/Cargo.toml and local OpenJDK version
10
+ OPENJDK_VERSION=`cd $(MMTK_RUST_ROOT) ; cargo read-manifest --manifest-path=Cargo.toml | python -c 'import json,sys; print(json.load(sys.stdin)["metadata"]["openjdk"]["openjdk_version"])'`
11
+ OPENJDK_LOCAL_VERSION=`git rev-parse HEAD`
12
+
5
13
ifdef MMTK_PLAN
6
14
GC_FEATURES=--features $(MMTK_PLAN)
7
15
endif
40
48
endif
41
49
42
50
$(LIB_MMTK): FORCE
51
+ if [[ "$(OPENJDK_VERSION)" != "$(OPENJDK_LOCAL_VERSION)" ]]; then \
52
+ echo -e $(YELLOW)WARNING: Local OpenJDK version does not match version specified in mmtk/Cargo.toml$(NC); \
53
+ echo -e $(YELLOW)Local OpenJDK version $(OPENJDK_LOCAL_VERSION)$(NC); \
54
+ echo -e $(YELLOW)mmtk/Cargo.toml OpenJDK version $(OPENJDK_VERSION)$(NC); \
55
+ fi
43
56
echo "cd $(MMTK_RUST_ROOT) && cargo build $(CARGO_PROFILE_FLAG) $(GC_FEATURES)"
44
57
cd $(MMTK_RUST_ROOT) && cargo build $(CARGO_PROFILE_FLAG) $(GC_FEATURES)
45
58
cp $(MMTK_RUST_ROOT)/target/$(CARGO_PROFILE)/libmmtk_openjdk.so $(LIB_MMTK)
You can’t perform that action at this time.
0 commit comments