diff --git a/scripts/mk_util.py b/scripts/mk_util.py
index 74d585dae..ae1293d08 100644
--- a/scripts/mk_util.py
+++ b/scripts/mk_util.py
@@ -44,8 +44,8 @@ INSTALL_LIB_DIR=getenv("Z3_INSTALL_LIB_DIR", "lib")
 INSTALL_INCLUDE_DIR=getenv("Z3_INSTALL_INCLUDE_DIR", "include")
 INSTALL_PKGCONFIG_DIR=getenv("Z3_INSTALL_PKGCONFIG_DIR", os.path.join(INSTALL_LIB_DIR, 'pkgconfig'))
 
-CXX_COMPILERS=['g++', 'clang++']
-C_COMPILERS=['gcc', 'clang']
+CXX_COMPILERS=['g++', 'clang++', 'aarch64-linux-gnu-g++']
+C_COMPILERS=['gcc', 'clang', 'aarch64-linux-gnu-gcc']
 JAVAC=None
 JAR=None
 PYTHON_PACKAGE_DIR=sysconfig.get_path('purelib')
diff --git a/scripts/nightly.yaml b/scripts/nightly.yaml
index d3e0737b5..cb651d232 100644
--- a/scripts/nightly.yaml
+++ b/scripts/nightly.yaml
@@ -68,7 +68,7 @@ stages:
     pool:
       vmImage: "ubuntu-latest"
     steps:
-    - script: python scripts/mk_unix_dist.py --dotnet-key=$(Build.SourcesDirectory)/resources/z3.snk --arch=arm64
+    - script: CXX=aarch64-linux-gnu-g++ C=aarch64-linux-gnu-gcc python scripts/mk_unix_dist.py --dotnet-key=$(Build.SourcesDirectory)/resources/z3.snk --arch=arm64
     - script: git clone https://github.com/z3prover/z3test z3test
     - script: python z3test/scripts/test_benchmarks.py build-dist/z3 z3test/regressions/smt2    
     - script: cp dist/*.zip $(Build.ArtifactStagingDirectory)/.