-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dockcross for C++ x86 cross compilation. (#8)
* Add dockcross for C++ x86 cross compilation. * Add dockcross containers for all cross compilation targets
- Loading branch information
1 parent
a75cf88
commit 5ce77d7
Showing
3 changed files
with
25 additions
and
14 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 |
---|---|---|
|
@@ -215,4 +215,6 @@ test/run_real_world_samples.sh | |
|
||
src/cwe_checker.plugin | ||
|
||
.#* | ||
test/artificial_samples/dockcross* | ||
|
||
.#* |
16 changes: 13 additions & 3 deletions
16
test/artificial_samples/install_cross_compilers_ubuntu_18.04.sh
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,8 +1,18 @@ | ||
#!/bin/bash | ||
echo "Installing cross compiler for ARM architecture." | ||
sudo apt install -y gcc-multilib-arm-linux-gnueabi g++-arm-linux-gnueabi | ||
sudo docker pull dockcross/linux-arm64 | ||
sudo docker run -rm dockcross/linux-arm64 > ./dockcross-linux-arm64 | ||
chmod +x ./dockcross-linux-arm64 | ||
echo "Installing cross compiler for MIPS architecture." | ||
sudo apt install -y gcc-multilib-mips-linux-gnu g++-7-mips-linux-gnu | ||
sudo docker pull dockcross/linux-mips | ||
sudo docker run -rm dockcross/linux-mips > ./dockcross-linux-mips | ||
chmod +x ./dockcross-linux-mips | ||
echo "Installing cross compiler for PPC architecture." | ||
sudo apt install -y gcc-multilib-powerpc-linux-gnu g++-7-powerpc-linux-gnu | ||
sudo docker pull dockcross/linux-ppc64le | ||
sudo docker run -rm dockcross/linux-ppc64le > ./dockcross-linux-ppc64le | ||
chmod +x ./dockcross-linux-ppc64le | ||
echo "Installing dockcross image for x86 C++ cross-compiler" | ||
sudo docker pull dockcross/linux-x86 | ||
sudo docker run -rm dockcross/linux-x86 > ./dockcross-linux-x86 | ||
chmod +x ./dockcross-linux-x86 | ||
echo "Done." |
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