-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Use signed char in RISC-V 64bit (#9524)
* build: riscv64: Add a fundamental architecture cmake file for riscv64 Signed-off-by: Hiroshi Hatake <[email protected]> * build: Add riscv64 architecture target for internal tests Signed-off-by: Hiroshi Hatake <[email protected]> * build: Restrict to use gcc only This is because this workflow is not injected and used clang packages Signed-off-by: Hiroshi Hatake <[email protected]> * build: Use gcc-9 and g++-9 on qemu workflow Signed-off-by: Hiroshi Hatake <[email protected]> * build: Use ubuntu-22.04 distro due to try to use gcc-12 for atomic operations on riscv64 Signed-off-by: Hiroshi Hatake <[email protected]> * build: riscv64: Remove commented out lines Signed-off-by: Hiroshi Hatake <[email protected]> --------- Signed-off-by: Hiroshi Hatake <[email protected]>
- Loading branch information
1 parent
7859f9d
commit 5d0c591
Showing
3 changed files
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(riscv64)") | ||
message(STATUS "Forcing characters to be signed, as on x86_64.") | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsigned-char") | ||
if(FLB_LUAJIT) | ||
message(WARNING "LuaJIT is disabled, this platform does not support built-in LuaJIT and system provided one neither.") | ||
set(FLB_LUAJIT OFF) | ||
endif() | ||
endif () |