Skip to content

Commit

Permalink
configure: Use indirection for the -o assembler flag also for x86asm
Browse files Browse the repository at this point in the history
Similar indirections are used for the -o compiler/assembler flag to
account for differences in compiler/assembler syntax. For x86asm half
the infrastructure for doing the same currently exists unused.
Finish and use that infrastructure for consistency.
  • Loading branch information
DonDiego committed Mar 26, 2018
1 parent b9ea301 commit 17ee5b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -844,12 +844,16 @@ check_insn(){
check_as ${1}_external "$2"
}

x86asm_o(){
eval printf '%s\\n' $X86ASM_O
}

test_x86asm(){
log test_x86asm "$@"
echo "$1" > $TMPASM
log_file $TMPASM
shift 1
test_cmd $x86asmexe $X86ASMFLAGS "$@" -o $TMPO $TMPASM
test_cmd $x86asmexe $X86ASMFLAGS "$@" $(x86asm_o $TMPO) $TMPASM
}

ld_o(){
Expand Down

0 comments on commit 17ee5b0

Please sign in to comment.