Skip to content

Commit

Permalink
devtools: allow test build outside source directory
Browse files Browse the repository at this point in the history
The test-meson-builds.sh script correctly detects the source directory and
builds the native builds successfully in a directory outside of the source
tree. However, the paths to the cross-files are not prefixed with the
source directory path, so the cross-builds all fail. Fix this by prepending
the source directory path appropriately.

Signed-off-by: Bruce Richardson <[email protected]>
Acked-by: Luca Boccassi <[email protected]>
  • Loading branch information
bruce-richardson authored and tmonjalo committed Apr 1, 2019
1 parent b77c1d1 commit d6cefc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions devtools/test-meson-builds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ if command -v $c >/dev/null 2>&1 ; then
# compile the general v8a also for clang to increase coverage
export CC="ccache clang"
build build-arm64-host-clang $use_shared \
--cross-file config/arm/arm64_armv8_linux_gcc
--cross-file $srcdir/config/arm/arm64_armv8_linux_gcc

for f in config/arm/arm*gcc ; do
for f in $srcdir/config/arm/arm*gcc ; do
export CC="ccache gcc"
build build-$(basename $f | tr '_' '-' | cut -d'-' -f-2) \
$use_shared --cross-file $f
Expand Down

0 comments on commit d6cefc1

Please sign in to comment.