/[gentoo-x86]/eclass/cuda.eclass
Gentoo

Diff of /eclass/cuda.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.3 Revision 1.4
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2014 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/cuda.eclass,v 1.3 2013/08/11 16:20:23 jlec Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/cuda.eclass,v 1.4 2014/09/17 10:21:37 jlec Exp $
4 4
5inherit flag-o-matic toolchain-funcs versionator 5inherit flag-o-matic toolchain-funcs versionator
6 6
7# @ECLASS: cuda.eclass 7# @ECLASS: cuda.eclass
8# @MAINTAINER: 8# @MAINTAINER:
99 local rawldflags=$(raw-ldflags) 99 local rawldflags=$(raw-ldflags)
100 # Be verbose if wanted 100 # Be verbose if wanted
101 [[ "${CUDA_VERBOSE}" == true ]] && NVCCFLAGS+=" -v" 101 [[ "${CUDA_VERBOSE}" == true ]] && NVCCFLAGS+=" -v"
102 102
103 # Tell nvcc where to find a compatible compiler 103 # Tell nvcc where to find a compatible compiler
104 if has_version \<=dev-util/nvidia-cuda-toolkit-5.5; then
105 NVCCFLAGS+=" $(cuda_gccdir -f)" 104 NVCCFLAGS+=" $(cuda_gccdir -f)"
106 fi
107 105
108 # Tell nvcc which flags should be used for underlying C compiler 106 # Tell nvcc which flags should be used for underlying C compiler
109 NVCCFLAGS+=" --compiler-options=\"${CXXFLAGS}\" --linker-options=\"${rawldflags// /,}\"" 107 NVCCFLAGS+=" --compiler-options=\"${CXXFLAGS}\" --linker-options=\"${rawldflags// /,}\""
110 108
111 debug-print "Using ${NVCCFLAGS} for cuda" 109 debug-print "Using ${NVCCFLAGS} for cuda"

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20