Skip to content

Commit

Permalink
Require and symlink Anaconda g++ compiler for nvcc
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham committed May 6, 2019
1 parent fe0f5db commit ee6f8a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions recipes/nvcc/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ EOF
# Symlink `nvcc` into `bin` so it can be easily run.
mkdir -p "${PREFIX}/bin"
ln -s "${CC}" "${PREFIX}/bin/gcc"
ln -s "${CXX}" "${PREFIX}/bin/g++"
ln -s "${CUDA_HOME}/bin/nvcc" "${PREFIX}/bin/nvcc"

# Add `libcuda.so` shared object stub to the compiler sysroot.
Expand Down
1 change: 1 addition & 0 deletions recipes/nvcc/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ build:
requirements:
host:
- {{ compiler("c") }}
- {{ compiler("cxx") }}
run:
- {{ compiler("c") }}
# Host code is forwarded to a C++ compiler
Expand Down

0 comments on commit ee6f8a8

Please sign in to comment.