diff options
| author | Michael Forney <mforney@mforney.org> | 2019-06-25 11:34:29 -0700 | 
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2019-06-27 16:32:49 -0700 | 
| commit | 2afeff7d9e6a0a735f80bae9e932df376bc42590 (patch) | |
| tree | c31df9ef60a94652aa2f1a52587800e4d5f1c9a5 /configure | |
| parent | b237b938d0e10da65f951ed64e7e38ae5926c804 (diff) | |
| download | cproc-2afeff7d9e6a0a735f80bae9e932df376bc42590.tar.xz | |
Pass target to cc-qbe
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 9 | 
1 files changed, 2 insertions, 7 deletions
| @@ -41,12 +41,6 @@ if [ "$host" != "$target" ] ; then  	toolprefix=$target-  fi -case "$target" in -x86_64*|amd64*) qbetarget=amd64_sysv ;; -aarch64*)       qbetarget=arm64      ;; -*) fail "unsupported architecture '${target%%-*}'" -esac -  startfiles=0  endfiles=0  defines= @@ -130,6 +124,7 @@ test "$DEFAULT_DYNAMIC_LINKER" && linkflags=$linkflags' "--dynamic-linker", "'$D  printf "creating config.h... "  cat >config.h <<EOF +static char target[]         = "$target";  static char *startfiles[]    = {$startfiles};  static char *endfiles[]      = {$endfiles};  static char *preprocesscmd[] = { @@ -148,7 +143,7 @@ static char *preprocesscmd[] = {  	"-D", "__attribute__(x)=",  	"-D", "__extension__=",  $defines}; -static char *codegencmd[]    = {"$DEFAULT_QBE", "-t", "$qbetarget"}; +static char *codegencmd[]    = {"$DEFAULT_QBE"};  static char *assemblecmd[]   = {"$DEFAULT_ASSEMBLER"};  static char *linkcmd[]       = {"$DEFAULT_LINKER", $linkflags};  EOF | 
