mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-18 02:39:46 +00:00
cc/gcc: do not consume parameters when parsing them
The current construct consumes the parameters while we parse them. Change this to a construct that does not consume the parameters. This has no impact on gcc, but is done for homogeneity with other components (eg. glibc). Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
parent
e1899ce97c
commit
e9de7fc0af
@ -122,10 +122,10 @@ do_cc_core() {
|
||||
local -a extra_config
|
||||
local -a core_LDFLAGS
|
||||
local -a core_targets
|
||||
local arg
|
||||
|
||||
while [ $# -ne 0 ]; do
|
||||
eval "${1// /\\ }"
|
||||
shift
|
||||
for arg in "$@"; do
|
||||
eval "${arg// /\\ }"
|
||||
done
|
||||
|
||||
lang_opt=c
|
||||
|
Loading…
Reference in New Issue
Block a user