Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build.sh: default to Linux only machine types #3803

Merged
merged 1 commit into from
Dec 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions contrib/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

shopt -s nullglob

# help message
help() {
echo
Expand Down Expand Up @@ -173,8 +175,8 @@ START=$(date +%s)

if [[ $NO_GCC -ne 1 ]]; then
if [[ ${#GCC[@]} -eq 0 ]]; then
for gcc in $(ls /opt/gcc); do
GCC+=( $gcc )
for gcc in /opt/gcc/*; do
GCC+=( $(basename "$gcc") )
done
fi
else
Expand All @@ -183,30 +185,30 @@ fi

if [[ $NO_CLANG -ne 1 ]]; then
if [[ ${#CLANG[@]} -eq 0 ]]; then
for clang in $(ls /opt/clang); do
CLANG+=( $clang )
for clang in /opt/clang/*; do
CLANG+=( $(basename "$clang") )
done
fi
else
CLANG=()
fi

# If --machine is not supplied, compile for all machine
# If --machine is not supplied, compile for all Linux
# makefiles present in the config/machine directory.

if [[ ${#MACHINES[@]} -eq 0 ]]; then
for machine in $(ls $FD_REPO_DIR/config/machine); do
MACHINES+=( $machine )
for machine in "$FD_REPO_DIR"/config/machine/linux_*.mk; do
MACHINES+=( $(basename "$machine") )
done
fi

echo "*************************"
echo "Starting Build Matrix..."
echo "*************************"
echo "machines=[ ${MACHINES[@]} ]"
echo "clang=[ ${CLANG[@]} ]"
echo "gcc=[ ${GCC[@]} ]"
echo "targets=[ ${TARGETS[@]} ]"
echo "machines=[ ${MACHINES[*]} ]"
echo "clang=[ ${CLANG[*]} ]"
echo "gcc=[ ${GCC[*]} ]"
echo "targets=[ ${TARGETS[*]} ]"
echo

# Install rust and packages, also fetch the git repositories
Expand Down
Loading