镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Commit f63f37d

Browse files
sxaaduh95
authored andcommitted
build: activate correct default flags for riscv64
Signed-off-by: Stewart X Addison <sxa@ibm.com> PR-URL: #65708 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Richard Lau <richard.lau@ibm.com>
1 parent f982a53 commit f63f37d

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

‎common.gypi‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,10 @@
616616
'cflags': [ '-m64', '-march=z196' ],
617617
'ldflags': [ '-m64', '-march=z196' ],
618618
}],
619+
[ 'host_arch=="riscv64" and OS=="linux"', {
620+
'cflags': [ '-march=rv64gc' ],
621+
'ldflags': [ '-march=rv64gc' ],
622+
}],
619623
],
620624
}],
621625
['_toolset=="target"', {
@@ -641,6 +645,10 @@
641645
'cflags': [ '-m64', '-march=z196' ],
642646
'ldflags': [ '-m64', '-march=z196' ],
643647
}],
648+
[ 'target_arch=="riscv64" and OS=="linux"', {
649+
'cflags': [ '-march=rv64gc' ],
650+
'ldflags': [ '-march=rv64gc' ],
651+
}],
644652
],
645653
}],
646654
],

‎tools/v8_gypfiles/v8.gyp‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2414,6 +2414,9 @@
24142414
['v8_target_arch=="ppc64" or v8_target_arch=="s390x"', {
24152415
'defines': ['TOOLCHAIN_MISS_ASM_HWCAP_H',],
24162416
}],
2417+
['v8_target_arch=="riscv64"', {
2418+
'defines': ['HWY_BROKEN_TARGETS=HWY_RVV',],
2419+
}],
24172420
],
24182421
'sources': [
24192422
'<!@pymod_do_main(GN-scraper "<(HIGHWAY_ROOT)/BUILD.gn" "source_set.\\"libhwy.*?sources = ")',

0 commit comments

Comments
 (0)