This repository was archived by the owner on Mar 24, 2022. It is now read-only.
Commit 71d7c07
committed
be lenient in interpreting LD
It's often more convenient to let the compiler figure out how to invoke
the linker, but setting `env LD="$CC" ... lucetc ...` poses a problem:
`$CC` can often be `"$COMPILER --option1 --option2 ..."`, e.g. `clang
--target=$TARGET`, and the current code assumes that `LD` is a single
string specifying a program, rather than some string specifying a
program along with options.
While you could require that `LD` be strictly limited to a single
string, it seems more flexible and more in line with other build systems
to interpret `LD` as space-separated tokens, the first of which
specifies the program to invoke, and the remaining tokens specifying
arguments to be passed.1 parent cf53a3b commit 71d7c07
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
392 | | - | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
393 | 402 | | |
394 | 403 | | |
395 | 404 | | |
| |||
0 commit comments