Skip to content

Commit

Permalink
configure: remove bashism.
Browse files Browse the repository at this point in the history
== is bash-only; for other shells this gives an error (meaning that you won't
get the sanity check):

	./configure
	Compiling ccan/tools/configurator/configurator...done
	./configure: 148: [: gcc: unexpected operator

Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell committed Feb 28, 2019
1 parent 02faadf commit d98fb0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ if [ -z "$VALGRIND" ]; then
fi

if [ "$ASAN" = "1" ]; then
if [ "$CC" == "clang" ]; then
if [ "$CC" = "clang" ]; then
echo "Address sanitizer (ASAN) is currently only supported with gcc"
exit 1
fi
Expand Down

0 comments on commit d98fb0f

Please sign in to comment.