-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cross-compile tests to ci and fix library names (#790)
* add sample toolchains and fix library names * add cross-compilation to ci * update linkers in config.toml * add cross-compilation test for linux
- Loading branch information
1 parent
789d900
commit 0b97c60
Showing
15 changed files
with
271 additions
and
132 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,25 @@ | ||
[target.x86_64-unknown-linux-musl] | ||
rustflags = "-Ctarget-feature=-crt-static" | ||
linker = "x86_64-linux-musl-gcc" | ||
|
||
[target.aarch64-unknown-linux-musl] | ||
rustflags = "-Ctarget-feature=-crt-static" | ||
linker = "aarch64-linux-musl-gcc" | ||
|
||
[target.arm-unknown-linux-gnueabihf] | ||
linker = "arm-linux-gnueabihf-gcc" | ||
|
||
[target.arm-unknown-linux-gnueabi] | ||
linker = "arm-linux-gnueabi-gcc" | ||
|
||
[target.armv7-unknown-linux-gnueabihf] | ||
linker = "armv7-linux-gnueabihf-gcc" | ||
|
||
[target.aarch64-unknown-linux-gnu] | ||
linker = "aarch64-linux-gnu-gcc" | ||
|
||
[target.x86_64-unknown-linux-gnu] | ||
linker = "x86_64-linux-gnu-gcc" | ||
|
||
[target.x86_64-pc-windows-gnu] | ||
linker = "x86_64-w64-mingw32-gcc" |
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,5 @@ | ||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_SYSTEM_PROCESSOR aarch64) | ||
set(ZENOHC_CUSTOM_TARGET aarch64-unknown-linux-gnu) | ||
set(CMAKE_C_COMPILER aarch64-linux-gnu-gcc) | ||
set(CMAKE_CXX_COMPILER aarch64-linux-gnu-g++) |
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,5 @@ | ||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_SYSTEM_PROCESSOR aarch64) | ||
set(ZENOHC_CUSTOM_TARGET aarch64-unknown-linux-musl) | ||
set(CMAKE_C_COMPILER aarch64-linux-musl-gcc) | ||
set(CMAKE_CXX_COMPILER aarch64-linux-musl-g++) |
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,5 @@ | ||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_SYSTEM_PROCESSOR arm) | ||
set(ZENOHC_CUSTOM_TARGET arm-unknown-linux-gnueabi) | ||
set(CMAKE_C_COMPILER arm-linux-gnueabi-gcc) | ||
set(CMAKE_CXX_COMPILER arm-linux-gnueabi-g++) |
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,5 @@ | ||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_SYSTEM_PROCESSOR armv7) | ||
set(ZENOHC_CUSTOM_TARGET armv7-unknown-linux-gnueabihf) | ||
set(CMAKE_C_COMPILER armv7-linux-gnueabihf-gcc) | ||
set(CMAKE_CXX_COMPILER armv7-linux-gnueabihf-g++) |
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,5 @@ | ||
set(CMAKE_SYSTEM_NAME Windows) | ||
set(CMAKE_SYSTEM_PROCESSOR x86_64) | ||
set(ZENOHC_CUSTOM_TARGET x86_64-pc-windows-gnu) | ||
set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc) | ||
set(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++) |
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,5 @@ | ||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_SYSTEM_PROCESSOR x86_64) | ||
set(ZENOHC_CUSTOM_TARGET x86_64-unknown-linux-gnu) | ||
set(CMAKE_C_COMPILER x86_64-unknown-linux-gnu-gcc) | ||
set(CMAKE_CXX_COMPILER x86_64-unknown-linux-gnu-g++) |
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,5 @@ | ||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_SYSTEM_PROCESSOR x86_64) | ||
set(ZENOHC_CUSTOM_TARGET x86_64-unknown-linux-musl) | ||
set(CMAKE_C_COMPILER x86_64-linux-musl-gcc) | ||
set(CMAKE_CXX_COMPILER x86_64-linux-musl-g++) |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.