Mercurial > projects > ldc
view bin/ldmd @ 1351:8d501abecd24
Initial (but disabled) fix for ticket #294 , the actual part that fixes the bug is in a #if 0 block as I'm afraid it will cause regressions. I'm most likely not going to be around tonight, and maybe not tomorrow as well, so I'm pushing it in case someone wants to run some serious testing/investigate the problem noted in llvmhelpers.cpp : realignOffset .
author | Tomas Lindquist Olsen <tomas.l.olsen gmail com> |
---|---|
date | Thu, 14 May 2009 17:20:17 +0200 |
parents | e40c65bd8c5d |
children | 17268b0a3ab0 |
line wrap: on
line source
#! /usr/bin/env bash # Default to 'ldc' next to this file LDC=`basename "$0"`/ldc if [ ! -x "$LDC" ]; then # If that doesn't work, assume this script was called via $PATH # and do the same for ldc if which ldc &> /dev/null; then LDC=ldc else echo 'ldc not found, check your installation' >/dev/stderr exit 1 fi fi declare -a ARGS IDX=0 for arg; do case "$arg" in -C*) # turn -Cfoo into -foo. # Useful for passing -inline to ldc, for instance. arg="-${arg:2}" ;; -debug|-debug=*|-version=*) arg="-d$arg" ;; -inline) arg="-enable-inlining" ;; -fPIC) arg="-relocation-model=pic" ;; --a|--b|--c|--f|--r|--w|--x|--y) # "Hidden debug switches" # Are these ever used? arg="-hidden-debug${arg:1}" ;; esac ARGS[IDX++]="$arg" done exec "$LDC" "${ARGS[@]}"