mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 09:34:24 +01:00
configure: don't turn on EXPERIMENTAL_FEATURES just because DEVELOPER.
It's about to become even more bleeding-edge. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
6
configure
vendored
6
configure
vendored
@@ -9,6 +9,7 @@ CC=${CC:-cc}
|
||||
CWARNFLAGS=${CWARNFLAGS:--Werror -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition}
|
||||
CDEBUGFLAGS=${CDEBUGFLAGS:--std=gnu11 -g -fstack-protector}
|
||||
DEVELOPER=${DEVELOPER:-0}
|
||||
EXPERIMENTAL_FEATURES=${EXPERIMENTAL_FEATURES:-0}
|
||||
COMPAT=${COMPAT:-1}
|
||||
CONFIGURATOR_CC=${CONFIGURATOR_CC:-$CC}
|
||||
|
||||
@@ -47,7 +48,7 @@ usage()
|
||||
echo " Prefix for make install"
|
||||
usage_with_default "--enable/disable-developer" "$DEVELOPER" "enable" "disable"
|
||||
echo " Developer mode, good for testing"
|
||||
usage_with_default "--enable/disable-experimental-features" "$EXPERIMENTAL_FEATURES" "enable" "disable (unless developer)"
|
||||
usage_with_default "--enable/disable-experimental-features" "$EXPERIMENTAL_FEATURES" "enable" "disable"
|
||||
echo " Developer mode, good for testing"
|
||||
usage_with_default "--enable/disable-compat" "$COMPAT" "enable" "disable"
|
||||
echo " Compatibility mode, good to disable to see if your software breaks"
|
||||
@@ -117,9 +118,6 @@ for opt in "$@"; do
|
||||
esac
|
||||
done
|
||||
|
||||
# If EXPERIMENTAL_FEATURES not set, set it to same as DEVELOPER
|
||||
EXPERIMENTAL_FEATURES=${EXPERIMENTAL_FEATURES:-$DEVELOPER}
|
||||
|
||||
echo -n "Compiling $CONFIGURATOR..."
|
||||
$CC $CWARNFLAGS $CDEBUGFLAGS -o $CONFIGURATOR $CONFIGURATOR.c
|
||||
echo "done"
|
||||
|
||||
Reference in New Issue
Block a user