X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Fliburcu%2Fbuild.sh;h=0e20d23ecf2e1f53698bbbad63f70aa9c228fe45;hb=b3fa9d686796ae9afdc7df443365a6c2da7f220e;hp=dfd1040efc417ad9cfc041a8266884575f6499d5;hpb=8a4d057c3d1c4f31aece3cdae212d6c7acdd6c0b;p=lttng-ci.git diff --git a/scripts/liburcu/build.sh b/scripts/liburcu/build.sh index dfd1040..0e20d23 100755 --- a/scripts/liburcu/build.sh +++ b/scripts/liburcu/build.sh @@ -124,7 +124,17 @@ macosx) ;; esac -# Set configure options for each build configuration +# Enter the source directory +cd "$SRCDIR" + +# Run bootstrap in the source directory prior to configure +./bootstrap + +# Get source version from configure script +eval "$(grep '^PACKAGE_VERSION=' ./configure)" + +# Set configure options and environment variables for each build +# configuration. CONF_OPTS="" case "$conf" in static) @@ -137,23 +147,21 @@ tls_fallback) CONF_OPTS="--disable-compiler-tls" ;; +debug-rcu) + echo "Enable RCU sanity checks for debugging" + if vergt "$PACKAGE_VERSION" "0.9"; then + CONF_OPTS="--enable-rcu-debug" + else + CFLAGS="$CFLAGS -DDEBUG_RCU" + fi + ;; + *) echo "Standard build" CONF_OPTS="" ;; esac - -# Enter the source directory -cd "$SRCDIR" - -# Run bootstrap in the source directory prior to configure -./bootstrap - -# Get source version from configure script -eval "$(grep '^PACKAGE_VERSION=' ./configure)" - - # Build type # oot : out-of-tree build # dist: build via make dist