From 31b80af9f5d7ebc47a68ca33f66db9ace328ce22 Mon Sep 17 00:00:00 2001 From: Adam Goode Date: Mon, 12 Feb 2024 22:48:29 -0500 Subject: [PATCH] Always pass flags to mlton in bin/regression This makes any `-target` flag get passed to get the right OBJPTR_REP for cross regressions. --- bin/regression | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/regression b/bin/regression index eb5c57e23..b9796daca 100755 --- a/bin/regression +++ b/bin/regression @@ -88,12 +88,12 @@ compFail () { "$mlton" -verbose 1 || (echo 'no mlton present' && exitFail=true) echo "flags = ${flags[*]}" -TARGET_ARCH=$("$mlton" -show path-map | sed -n 's/TARGET_ARCH \(.*\)/\1/p') -TARGET_OS=$("$mlton" -show path-map | sed -n 's/TARGET_OS \(.*\)/\1/p') -OBJPTR_REP=$("$mlton" -show path-map | sed -n 's/OBJPTR_REP \(.*\)/\1/p') +TARGET_ARCH=$("$mlton" "${flags[@]}" -show path-map | sed -n 's/TARGET_ARCH \(.*\)/\1/p') +TARGET_OS=$("$mlton" "${flags[@]}" -show path-map | sed -n 's/TARGET_OS \(.*\)/\1/p') +OBJPTR_REP=$("$mlton" "${flags[@]}" -show path-map | sed -n 's/OBJPTR_REP \(.*\)/\1/p') ALIGN=$(echo "${flags[@]}" | sed -n 's/.*-align \(.\).*/\1/p') if [ -z "$ALIGN" ]; then - ALIGN=$("$mlton" -z 2>&1 | sed -n 's/.*-align {\(.\).*/\1/p') + ALIGN=$("$mlton" "${flags[@]}" -z 2>&1 | sed -n 's/.*-align {\(.\).*/\1/p') fi cd "$src/regression"