Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set environment variables for common build tools #53

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions recipe/activate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
if [ "$(uname)" == "Darwin" ]
then
# for Mac OSX
export AR=ar
export CC=clang
export CXX=clang++
export FC=gfortran
export F77=$FC
export F90=$FC
export F95=$FC
export LD=ld
export NM=nm
export RANLIB=ranlib
export STRIP=strip
export MACOSX_VERSION_MIN="10.9"
export MACOSX_DEPLOYMENT_TARGET="${MACOSX_VERSION_MIN}"
export CMAKE_OSX_DEPLOYMENT_TARGET="${MACOSX_VERSION_MIN}"
Expand All @@ -29,12 +34,19 @@ then
elif [ "$(uname)" == "Linux" ]
then
# for Linux
export AR=ar
export CC=gcc
export CXX=g++
export FC=gfortran
export F77=$FC
export F90=$FC
export F95=$FC
export LD=ld
export NM=nm
export OBJCOPY=objcopy
export OBJDUMP=objdump
export RANLIB=ranlib
export STRIP=strip
export CFLAGS="${CFLAGS}"
# Boost wants to enable `float128` support on Linux by default.
# However, we don't install `libquadmath` so it will fail to find
Expand Down
12 changes: 12 additions & 0 deletions recipe/deactivate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
if [ "$(uname)" == "Darwin" ];
then
# for Mac OSX
unset AR
unset CC
unset CXX
unset FC
unset F77
unset F90
unset F95
unset LD
unset NM
unset RANLIB
unset STRIP
unset MACOSX_VERSION_MIN
unset MACOSX_DEPLOYMENT_TARGET
unset CMAKE_OSX_DEPLOYMENT_TARGET
Expand All @@ -21,12 +26,19 @@ then
elif [ "$(uname)" == "Linux" ]
then
# for Linux
unset AR
unset CC
unset CXX
unset FC
unset F77
unset F90
unset F95
unset LD
unset NM
unset OBJCOPY
unset OBJDUMP
unset RANLIB
unset STRIP
unset CFLAGS
unset CXXFLAGS
unset LDFLAGS
Expand Down
2 changes: 1 addition & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package:
name: toolchain
version: 2.3.0
version: 2.4.0

build:
number: 0
Expand Down