Lines 351-357
switch_linker() {
Link Here
|
351 |
local bpath ld=$1 |
351 |
local bpath ld=$1 |
352 |
|
352 |
|
353 |
case ${ld} in |
353 |
case ${ld} in |
|
|
354 |
ld.lld) die "Please supply full path for ld.lld" ;; |
354 |
ld.*) ;; |
355 |
ld.*) ;; |
|
|
356 |
*ld.lld) ;; |
355 |
*) die "not supported: linker must start with 'ld.'" ;; |
357 |
*) die "not supported: linker must start with 'ld.'" ;; |
356 |
esac |
358 |
esac |
357 |
|
359 |
|
Lines 360-366
switch_linker() {
Link Here
|
360 |
|
362 |
|
361 |
# does this binutils even support the requested linker ? |
363 |
# does this binutils even support the requested linker ? |
362 |
if [[ ! -e ${bpath}/${ld} ]] ; then |
364 |
if [[ ! -e ${bpath}/${ld} ]] ; then |
363 |
die "sorry, but ${PROFILE} doesn't support the ${ld} linker" |
365 |
# Special case ld.lld as it won't preexist in bpath |
|
|
366 |
case ${ld} in |
367 |
*ld.lld) ;; |
368 |
*) die "sorry, but ${PROFILE} doesn't support the ${ld} linker" ;; |
369 |
esac |
364 |
fi |
370 |
fi |
365 |
|
371 |
|
366 |
# switch it up |
372 |
# switch it up |
367 |
- |
|
|