Skip to content

Remove explicitly setting IREE_LLVMAOT_LINKER_PATH in build scripts - #4110

Merged
asaadaldien merged 2 commits into
mainfrom
ataei-remove_llvmaot_linker_path
Dec 7, 2020
Merged

asaadaldien merged 2 commits into
mainfrom
ataei-remove_llvmaot_linker_path

Conversation

@asaadaldien

@asaadaldien asaadaldien commented Dec 7, 2020 •

Copy link
Copy Markdown
Contributor

This enables the default linker discovery by not setting IREE_LLVMAOT_LINKER_PATH .

Progress on #4090

declare -a test_env_args=(
--test_env=IREE_LLVMJIT_DISABLE=$IREE_LLVMJIT_DISABLE
--test_env=IREE_VULKAN_DISABLE=$IREE_VULKAN_DISABLE
--action_env=IREE_LLVMAOT_LINKER_PATH=$IREE_LLVMAOT_LINKER_PATH

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this behave when the env var isn't set? We probably still want to forward the env var into Bazel's sandbox if it is set explicitly.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't tried bazel hopefully it will be null. I will revert this and keep the forwarding.

case "${target}" in
"dylib-llvm-aot")
extra_flags+=('--iree-llvm-target-triple=aarch64-linux-android')
extra_flags+=('--iree-llvm-target-triple=aarch64-none-linux-android30')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious about the format of these triples... I've been using android29 since that matches the version of the NDK I currently have downloaded. Does generic android work well enough, or are we going to have these sorts of pinned versions in several places?

@asaadaldien asaadaldien Dec 7, 2020 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aarch64 & android30 are supposed to be driven from what ever we have here as ANDROID_PLATFORM & ANDROID_ABI
https://github.com/google/iree/blob/main/build_tools/cmake/build_android.sh
I used 30 as the most recent NDK have

@ScottTodd ScottTodd added codegen/llvm LLVM code generation compiler backend infrastructure Relating to build systems, CI, or testing labels Dec 7, 2020
@asaadaldien

Copy link
Copy Markdown
Contributor Author

This enables the default linker discovery by not setting IREE_LLVMAOT_LINKER_PATH .

Progress on #4090

@asaadaldien
asaadaldien merged commit 2b825ac into main Dec 7, 2020
@asaadaldien
asaadaldien deleted the ataei-remove_llvmaot_linker_path branch December 7, 2020 19:19
@GMNGeoffrey

Copy link
Copy Markdown
Member

Just changing the dockerfile like this does not update our docker images. Please take a look at the README under https://github.com/google/iree/tree/main/build_tools/docker. In the meantime, I think this should be reverted. It creates a skew between our dockerfiles and actually built images. #4116 is not sufficient to fix it (it only updates the cmake-android image)

GMNGeoffrey added a commit that referenced this pull request Dec 7, 2020
GMNGeoffrey added a commit that referenced this pull request Dec 7, 2020
…cripts" (#4118)

This didn't actually update the docker images and makes our docker files out of sync with the images being used. The base image is used
by basically all of our production images, so it has far-reaching
effects (not just Android).

Reverts #4110
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codegen/llvm LLVM code generation compiler backend infrastructure Relating to build systems, CI, or testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants