Merge pull request #614 from elkcl/file-format-locale-patch

Add LC_ALL=C to cc-objdump-file-format.sh for awk to work properly
This commit is contained in:
Octavian Purdila
2025-08-21 14:47:32 -07:00
committed by GitHub

View File

@@ -4,5 +4,5 @@
# Print the C compiler output file format, as determined by objdump.
t=`mktemp` || exit 1
echo 'void foo(void) {}' | $CC -x c - -c -o "$t" \
&& $OBJDUMP -p "$t" | awk '/file format/ {print $4}'
&& LC_ALL=C $OBJDUMP -p "$t" | awk '/file format/ {print $4}'
rm "$t"