aboutsummaryrefslogtreecommitdiff
path: root/bug-2123/build.sh
blob: 01164c0dfa0bcd191acdaacfd68b5ef4b6392a55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
set -e

# A plugin for the cross-compiler should be compiled by the
# host compiler.

plugin_dir=$(${CC} -print-file-name=plugin)

echo "$(basename $(pwd)): FAIL" > result.txt
set -x
${HOSTCC} -c -o /dev/null simple.cc -I${plugin_dir}/include -I${TOOLCHAIN}/include -I.
set +x
echo "$(basename $(pwd)): PASS" > result.txt