Skip to content

Commit

Permalink
silence the warning regarding the missing font, add m1 toolchain file…
Browse files Browse the repository at this point in the history
… in addition to arm64 architectures
  • Loading branch information
azimafroozeh committed Nov 6, 2024
1 parent 4c2369d commit 79058bc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
13 changes: 9 additions & 4 deletions publication/master_script/master_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ green_echo "Setting up workspace variables..."
WORKSPACE=$(pwd) # Assuming this is the workspace directory
REPO_URL="https://github.com/cwida/ALP.git"
TARGET_DIR="$WORKSPACE/ALP" # Define target directory for the clone
BRANCH="repro" # Branch to clone
BRANCH="repro" # Branch to clone

green_echo "Cloning or updating repository..."
# Clone the repository if it doesn't already exist
Expand Down Expand Up @@ -42,10 +42,15 @@ else
green_echo "ALP_DATASET_DIR_PATH is set to $ALP_DATASET_DIR_PATH"
fi

green_echo "Determining toolchain file based on system architecture..."
# Determine toolchain file based on system architecture
green_echo "Determining system architecture and platform..."
# Determine system architecture and platform
ARCH=$(uname -m)
if [ "$ARCH" == "arm64" ]; then
PLATFORM=$(uname -s)

if [ "$ARCH" == "arm64" ] && [ "$PLATFORM" == "Darwin" ]; then
TOOLCHAIN_FILE="$TARGET_DIR/toolchain/m1.cmake"
green_echo "Using M1 toolchain file..."
elif [ "$ARCH" == "arm64" ]; then
TOOLCHAIN_FILE="$TARGET_DIR/toolchain/arm64.cmake"
green_echo "Using ARM64 toolchain file..."
else
Expand Down
2 changes: 2 additions & 0 deletions publication/plotter/plotter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from plot_maker import PlotMaker
import warnings
warnings.filterwarnings("ignore", message="findfont: Font family 'Droid Serif' not found")

if __name__ == "__main__":
pm = PlotMaker()
Expand Down
4 changes: 4 additions & 0 deletions toolchain/m1.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
set(CMAKE_SYSTEM_PROCESSOR arm64)

set(CMAKE_C_COMPILER /usr/bin/clang)
set(CMAKE_CXX_COMPILER /usr/bin/clang++)

0 comments on commit 79058bc

Please sign in to comment.