Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 442958 | Differences between
and this patch

Collapse All | Expand All

(-)llvm-3.8.0-r2.ebuild.old (+19 lines)
Lines 358-363 Link Here
358
		#filter-flags -msahf -frecord-gcc-switches
358
		#filter-flags -msahf -frecord-gcc-switches
359
	fi
359
	fi
360
360
361
	if tc-is-cross-compiler; then
362
		[[ -x "/usr/bin/llvm-tblgen" ]] \
363
			|| die "/usr/bin/llvm-tblgen not found or usable"
364
		mycmakeargs+=(
365
			-DCMAKE_CROSSCOMPILING=True
366
			-DLLVM_TABLEGEN=/usr/bin/llvm-tblgen
367
			-DCMAKE_CXX_FLAGS="-I${EROOT}usr/include/"
368
		)
369
370
		if use clang; then
371
			[[ -x "/usr/bin/clang-tblgen" ]] \
372
				|| die "/usr/bin/clang-tblgen not found or usable"
373
			mycmakeargs+=(-DCLANG_TABLEGEN=/usr/bin/clang-tblgen)
374
			if [[ ${CXX%++} == "clang" ]]; then
375
				mycmakeargs+=(-DLLVM_ENABLE_PIC=False)
376
			fi
377
		fi
378
	fi
379
361
	cmake-utils_src_configure
380
	cmake-utils_src_configure
362
}
381
}
363
382

Return to bug 442958