kopia lustrzana https://github.com/OpenDroneMap/ODM
Update GCC Wrapper scripts for portable build
The wrapper scripts incorrectly unwrapped arguments with spaces making them appear to be multiple individual arguments instead of one quoted argument. ref: https://github.com/OpenDroneMap/ODM/pull/1170#issuecomment-716607868 Signed-off-by: Daniel Llewellyn <daniel@snapcraft.ninja>pull/1176/head
rodzic
03a7923433
commit
9abf1ee695
|
@ -1,12 +1,12 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
args=""
|
declare -a args
|
||||||
|
|
||||||
for i in "$@"
|
for i in "$@"
|
||||||
do
|
do
|
||||||
if [[ $i != -march* ]]; then
|
if [[ "$i" != -march* ]]; then
|
||||||
args="$args $i"
|
args+=("$i")
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
/usr/bin/g++_real -march=nehalem $args
|
/usr/bin/g++_real -march=nehalem "${args[@]}"
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
args=""
|
declare -a args
|
||||||
|
|
||||||
for i in "$@"
|
for i in "$@"
|
||||||
do
|
do
|
||||||
if [[ $i != -march* ]]; then
|
if [[ "$i" != -march* ]]; then
|
||||||
args="$args $i"
|
args+=("$i")
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
/usr/bin/gcc_real -march=nehalem $args
|
/usr/bin/gcc_real -march=nehalem "${args[@]}"
|
||||||
|
|
Ładowanie…
Reference in New Issue