Skip to content

Commit

Permalink
preprocessor: forward -std=xyz to gcc (#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
h0nzZik committed Jan 14, 2020
1 parent 02919ca commit ed5c05e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions profiles/x86-gcc-limited-libc/pp
Expand Up @@ -27,9 +27,6 @@ do
esac
shift
;;
-std=*)
shift
;;
--)
eoo=1
options+=("$1")
Expand All @@ -46,12 +43,7 @@ do
fi
done

standard="c11"
if (gcc -std=c11 |& grep -q unrecognized); then
standard="c99"
fi

gcc -Wall -Wextra -Wmissing-prototypes -x c -std=$standard -nostdlib \
gcc -Wall -Wextra -Wmissing-prototypes -x c -nostdlib \
-U __GNUC__ -D__KCC__ \
-include "$(dirname "$0")/include/kcc_settings.h" \
-E -I "$(dirname "$0")/include/library" "${options[@]}"

0 comments on commit ed5c05e

Please sign in to comment.