Index: debuginfo-tests/dexter/dex/builder/scripts/posix/gcc.sh =================================================================== --- /dev/null +++ debuginfo-tests/dexter/dex/builder/scripts/posix/gcc.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +set -e + +if test -z "$PATHTOGCC"; then + PATHTOGCC=gcc +fi + +for INDEX in $SOURCE_INDEXES +do + CFLAGS=$(eval echo "\$COMPILER_OPTIONS_$INDEX") + SRCFILE=$(eval echo "\$SOURCE_FILE_$INDEX") + OBJFILE=$(eval echo "\$OBJECT_FILE_$INDEX") + $PATHTOGCC -std=gnu++11 -c $CFLAGS $SRCFILE -o $OBJFILE +done + +$PATHTOGCC $LINKER_OPTIONS $OBJECT_FILES -o $EXECUTABLE_FILE Index: debuginfo-tests/dexter/dex/tools/clang_opt_bisect/Tool.py =================================================================== --- debuginfo-tests/dexter/dex/tools/clang_opt_bisect/Tool.py +++ debuginfo-tests/dexter/dex/tools/clang_opt_bisect/Tool.py @@ -77,6 +77,13 @@ return limits + def _verify_options(self, options) -> bool: + if "clang" not in options.builder.lower(): + self.context.o.auto("error: --builder %s is not supported by the clang-opt-bisect tool - only 'clang' is " + "supported\n " % options.builder) + return False + return True + def _run_test(self, test_name): # noqa options = self.context.options