File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3- LIBDIR=" $( realpath " $( dirname " $( gcc -print-file-name=libc.so) " ) " ) "
43SCRIPT_DIR=" $( dirname " ${BASH_SOURCE[0]} " ) "
54BUILDROOT_ABS=" $( realpath " $SCRIPT_DIR /../../buildroot/include" 2> /dev/null || echo " " ) "
65PARSED_ARGS=()
6968 TARGET=" ${SPC_TARGET} -${SPC_LIBC} "
7069 [ -n " $SPC_LIBC_VERSION " ] && TARGET=" ${TARGET} .${SPC_LIBC_VERSION} "
7170
72- output=$( zig cc -target " $TARGET " -L " $LIBDIR " - lstdc++ " ${PARSED_ARGS[@]} " 2>&1 )
71+ output=$( zig cc -target " $TARGET " -lstdc++ " ${PARSED_ARGS[@]} " 2>&1 )
7372 status=$?
7473
7574 filtered_output=$( echo " $output " | grep -v " version '.*' in target triple" )
8180
8281 if echo " $output " | grep -q " version '.*' in target triple" ; then
8382 TARGET_FALLBACK=" ${SPC_TARGET} -${SPC_LIBC} "
84- output=$( zig cc -target " $TARGET_FALLBACK " -L " $LIBDIR " - lstdc++ " ${PARSED_ARGS[@]} " 2>&1 )
83+ output=$( zig cc -target " $TARGET_FALLBACK " -lstdc++ " ${PARSED_ARGS[@]} " 2>&1 )
8584 status=$?
8685
8786 filtered_output=$( echo " $output " | grep -v " version '.*' in target triple" )
You can’t perform that action at this time.
0 commit comments