Skip to content

Commit

Permalink
Add riscv64 as supported architecture. Add RISC-V flags for jvmtiasma…
Browse files Browse the repository at this point in the history
…gent. Allow not to use ASYNC_PROFILER when using Linux.
  • Loading branch information
Zeavee committed May 5, 2022
1 parent 11e5ce1 commit c4fe252
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions mx.mx/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,9 @@
"sha1": "cc9dc177d8ab9368af332eb4d39ee3be434683c3",
"urls": ["{urlbase}/async-profiler-1.8.3-linux-aarch64.tar.gz"],
},
"<others>": {
"optional": True,
}
},
"darwin": {
"amd64": {
Expand Down Expand Up @@ -834,6 +837,9 @@
"aarch64": {
"cflags" : ["-fPIC", "-Wall", "-Werror", "-O", "-g", "-DJVMTI_ASM_ARCH=aarch64", "-std=gnu99"],
},
"riscv64" : {
"cflags" : ["-fPIC", "-Wall", "-Werror", "-O", "-g", "-DJVMTI_ASM_ARCH=riscv64", "-std=gnu99"],
}
},
"darwin": {
"<others>": {
Expand Down
4 changes: 3 additions & 1 deletion mx.py
Original file line number Diff line number Diff line change
Expand Up @@ -3840,6 +3840,8 @@ def _get_real_arch():
return 'amd64'
if machine in ['sun4v', 'sun4u', 'sparc64']:
return 'sparcv9'
if machine in ['riscv64']:
return 'riscv64'
if machine == 'i386' and is_darwin():
try:
# Support for Snow Leopard and earlier version of MacOSX
Expand Down Expand Up @@ -17870,7 +17872,7 @@ def alarm_handler(signum, frame):


# The version must be updated for every PR (checked in CI)
version = VersionSpec("6.0.1") # GR-38477
version = VersionSpec("6.0.2") # GR-37190

currentUmask = None
_mx_start_datetime = datetime.utcnow()
Expand Down

0 comments on commit c4fe252

Please sign in to comment.