Merge pull request #107 from ideal/develop

specify CMAKE_RANLIB to prevent using default ranlib in some circumstances
pull/125/head
bj-wanghz 2020-05-08 15:11:37 +08:00 committed by GitHub
commit 6c35406004
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@ message(" CMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}")
message(" CMAKE_LINKER=${CMAKE_LINKER}")
message(" CMAKE_OBJCOPY=${CMAKE_OBJCOPY}")
message(" CMAKE_OBJDUMP=${CMAKE_OBJDUMP}")
message(" CMAKE_RANLIB=${CMAKE_RANLIB}")
message(" CMAKE_MAKE_PROGRAM=${CMAKE_MAKE_PROGRAM}")
message("")
message(" CMAKE_C_FLAGS=${CMAKE_C_FLAGS}")

View File

@ -25,6 +25,7 @@ global_set(CMAKE_AR "${TOOLCHAIN}/riscv64-unknown-elf-ar${EXT}")
global_set(CMAKE_OBJCOPY "${TOOLCHAIN}/riscv64-unknown-elf-objcopy${EXT}")
global_set(CMAKE_SIZE "${TOOLCHAIN}/riscv64-unknown-elf-size${EXT}")
global_set(CMAKE_OBJDUMP "${TOOLCHAIN}/riscv64-unknown-elf-objdump${EXT}")
global_set(CMAKE_RANLIB "${TOOLCHAIN}/riscv64-unknown-elf-ranlib${EXT}")
if (WIN32)
if(EXISTS "${TOOLCHAIN}/make${EXT}")
global_set(CMAKE_MAKE_PROGRAM "${TOOLCHAIN}/make${EXT}")