Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 622866
Collapse All | Expand All

(-)eclass/llvm.eclass~ (-1 / +14 lines)
Lines 130-136 Link Here
130
	debug-print-function ${FUNCNAME} "${@}"
130
	debug-print-function ${FUNCNAME} "${@}"
131
131
132
	if [[ ${MERGE_TYPE} != binary ]]; then
132
	if [[ ${MERGE_TYPE} != binary ]]; then
133
		export PATH=$(get_llvm_prefix ${LLVM_MAX_SLOT})/bin:${PATH}
133
		local -a new_path
134
		local llvm_bindir=$(get_llvm_prefix ${LLVM_MAX_SLOT})/bin
135
		local IFS=:
136
		set ${PATH}
137
		while (( ${#} )) && ! [[ -x ${1}/llvm-config ]] ; do
138
			[[ ${1} != ${llvm_bindir} ]] && new_path+=( "${1}" )
139
			shift
140
		done
141
		new_path+=( "${llvm_bindir}" )
142
		while (( ${#} )) ; do
143
			[[ ${1} != ${llvm_bindir} ]] && new_path+=( "${1}" )
144
			shift
145
		done
146
		export PATH=${new_path[*]}
134
	fi
147
	fi
135
}
148
}
136
149

Return to bug 622866