Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
Zentrik committed Aug 24, 2024
1 parent 1eb0d30 commit 2850dde
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions utilities/build_julia.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ echo "--- Collect make options"
# These are the flags we'll provide to `make`
MFLAGS=()

if [[ ! -z "${USE_JULIA_PGO_LTO-}" ]]; then
MFLAGS+=( "-C contrib/pgo-lto" )
MFLAGS+=( "STAGE2_BUILD=$PWD" )
fi

# If we have the option, let's use `--output-sync`
if ${MAKE} --help | grep output-sync >/dev/null 2>/dev/null; then
MFLAGS+=( "--output-sync" )
Expand All @@ -57,11 +62,6 @@ else
fi
MFLAGS+=( "JULIA_CPU_TARGET=${JULIA_CPU_TARGET}" )

if [[ ! -z "${USE_JULIA_PGO_LTO-}" ]]; then
MFLAGS+=( "-C contrib/pgo-lto" )
MFLAGS+=( "STAGE2_BUILD=$PWD" )
fi

# Finish off with any extra make flags from the `.arches` file
MFLAGS+=( $(tr "," " " <<<"${MAKE_FLAGS}") )

Expand Down

0 comments on commit 2850dde

Please sign in to comment.