Skip to content

Commit

Permalink
Always pass flags to mlton in bin/regression
Browse files Browse the repository at this point in the history
This makes any `-target` flag get passed to get the right OBJPTR_REP for cross regressions.
  • Loading branch information
agoode committed May 19, 2024
1 parent 21d94b8 commit f39bec2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/regression
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f39bec2

Please sign in to comment.