diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 449853c..d26561e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,6 +7,7 @@ on: push: branches: - main + workflow_dispatch: jobs: @@ -25,12 +26,16 @@ jobs: dist: centos-7 - os: macos-13 dist: ubuntu-18.04 + - os: macos-13 + dist: local - os: ubuntu-latest dist: local - os: macos-13-arm64 dist: centos-7 - os: macos-13-arm64 dist: ubuntu-18.04 + - os: macos-13-arm64 + dist: local steps: - name: Checkout diff --git a/.gitmodules b/.gitmodules index 26bd48a..ebbd7d8 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "llvm-project"] path = llvm-project - url = https://github.com/llvm/llvm-project.git + url = https://github.com/quintinwang5/llvm-project.git diff --git a/build_llvm.bash b/build_llvm.bash index e2a605f..e535398 100755 --- a/build_llvm.bash +++ b/build_llvm.bash @@ -57,7 +57,7 @@ if [ x"$install_prefix" == x ] || [ x"$platform" == x ] || [ x"$build_config" == fi # Set up CMake configurations -CMAKE_CONFIGS="-DLLVM_ENABLE_PROJECTS=mlir -DLLVM_INSTALL_UTILS=ON -DLLVM_INCLUDE_TESTS=OFF" +CMAKE_CONFIGS="-DLLVM_ENABLE_PROJECTS=mlir -DLLVM_USE_LINKER=gold -DLLVM_ENABLE_LTO=OFF" if [ x"$arch" == x"arm64" ]; then CMAKE_CONFIGS="${CMAKE_CONFIGS}" else @@ -104,7 +104,7 @@ elif [ x"$platform" == x"docker_ubuntu-18.04" ] || DOCKER_FILE_PATH="scripts/$platform/Dockerfile" echo "Building $DOCKER_REPOSITORY:$DOCKER_TAG using $DOCKER_FILE_PATH" - docker build -t $DOCKER_REPOSITORY:$DOCKER_TAG --build-arg cmake_configs="${CMAKE_CONFIGS}" --build-arg num_jobs="${num_jobs}" --build-arg install_dir_name="${install_prefix}" -f "$BUILD_DIR/$DOCKER_FILE_PATH" "$BUILD_DIR" + docker build -t $DOCKER_REPOSITORY:$DOCKER_TAG --build-arg http_proxy=${http_proxy} --build-arg https_proxy=${https_proxy} --build-arg cmake_configs="${CMAKE_CONFIGS}" --build-arg num_jobs="${num_jobs}" --build-arg install_dir_name="${install_prefix}" -f "$BUILD_DIR/$DOCKER_FILE_PATH" "$BUILD_DIR" # Copy a created tarball from a Docker container. # We cannot directly copy a file from a Docker image, so first diff --git a/llvm-project b/llvm-project index 76ce473..488e8b8 160000 --- a/llvm-project +++ b/llvm-project @@ -1 +1 @@ -Subproject commit 76ce4736721a6e9030210bda6df0ad8a8f478a19 +Subproject commit 488e8b8e226ea96daf5b645724cf6b7511d7169d