Skip to content

Commit

Permalink
differentiate gcc-powerpc-linux-gnu package name on different archite…
Browse files Browse the repository at this point in the history
…cture (#3434)

* differentiate gcc-powerpc-linux-gnu package name

differentiate gcc-powerpc-linux-gnu package name on different
architecture

* add option -std=gnu99 when building cryptonight

add option -std-gnu99 when building cryptonight

* change code style

change code style according to the suggestions of scripts/check_commit.sh
  • Loading branch information
JerryKwan authored May 30, 2022
1 parent b72a546 commit 1133a34
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion consensus/cryptonight-rs/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ fn main() {
config.flag("-maes").flag("-msse2");
}
if target_os.contains("linux") || target_os.contains("macos") {
config.flag("-Ofast").flag("-fexceptions");
config
.flag("-Ofast")
.flag("-fexceptions")
.flag("-std=gnu99");
}
config.compile("cryptonight");
}
6 changes: 5 additions & 1 deletion scripts/dev_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,11 @@ function install_gcc_powerpc_linux_gnu {
PACKAGE_MANAGER=$1
#Differently named packages for gcc-powerpc-linux-gnu
if [[ "$PACKAGE_MANAGER" == "apt-get" ]] || [[ "$PACKAGE_MANAGER" == "yum" ]]; then
install_pkg gcc-powerpc-linux-gnu "$PACKAGE_MANAGER"
if [[ "$(getconf LONG_BIT)" == "64" ]]; then
install_pkg gcc-powerpc64-linux-gnu "$PACKAGE_MANAGER"
else
install_pkg gcc-powerpc-linux-gnu "$PACKAGE_MANAGER"
fi
fi
#if [[ "$PACKAGE_MANAGER" == "pacman" ]]; then
# install_pkg powerpc-linux-gnu-gcc "$PACKAGE_MANAGER"
Expand Down

0 comments on commit 1133a34

Please sign in to comment.