diff options
author | David Hendricks <dhendrix@chromium.org> | 2012-12-20 14:24:08 -0800 |
---|---|---|
committer | David Hendricks <dhendrix@chromium.org> | 2012-12-21 20:18:31 +0100 |
commit | ceb82da99f9b9bc0629b6e3689dd19c988f4cd0b (patch) | |
tree | 0ee5b4f722d866f8c5ad5beb96df53152246063c | |
parent | ec3daf7e08b4c42b45fc2c84b92820af6688e11b (diff) | |
download | coreboot-staging-ceb82da99f9b9bc0629b6e3689dd19c988f4cd0b.zip coreboot-staging-ceb82da99f9b9bc0629b6e3689dd19c988f4cd0b.tar.gz |
add a return type to test function used by xcompile
This fixes a minor bug that could cause testcc to fail unexpectedly.
Change-Id: Ib75d343104b6937682c05acf5232596aac83f105
Signed-off-by: David Hendricks <dhendrix@chromium.org>
Reviewed-on: http://review.coreboot.org/2068
Tested-by: build bot (Jenkins)
-rw-r--r-- | util/xcompile/xcompile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index fdc5213..4239176 100644 --- a/util/xcompile/xcompile +++ b/util/xcompile/xcompile @@ -40,7 +40,7 @@ testcc() { local tmp_c="$TMPFILE.c" local tmp_o="$TMPFILE.o" rm -f "$tmp_c" "$tmp_o" - echo "_start(void) {}" >"$tmp_c" + echo "void _start(void) {}" >"$tmp_c" "$1" -nostdlib -Werror $2 "$tmp_c" -o "$tmp_o" >/dev/null 2>&1 } |