Added android/build-toolchain#9785
Added android/build-toolchain#9785CodaFi merged 9 commits intoswiftlang:masterfrom amraboelela:android-build_toolchain
Conversation
modocache
left a comment
There was a problem hiding this comment.
Looks great! This should be useful for anyone experimenting with Swift on Android, thanks for writing this!
I have one suggestion, though: how about writing this in Python? I think that would be improvement for three reasons:
- By using the Python
argparsemodule, users of the script can see all the required parameters by invokingutils/android/build-toolchain --help. As is, on the other hand, they would have to invoke the script, then they'd seePlease set the Android NDK directory in the ANDROID_NDK_DIR environment variable, then invoke the script again... and so on. - I think using Python could prevent some errors if this script is modified in the future. For example, the line
rm -rf ${SWIFT_TOOLCHAIN_DIR}in this script worries me... Python makes it a little harder to accidentally delete a directory. Or, if you'd like to keep using Bash, please useset -eat the top of this script to prevent programmer errors from causing too much chaos :) - Many of the scripts in this repository are written in Python, and personally I think Python is easier to read than Bash.
What do you think? I'm open to keeping this in Bash, if you'd like to do so, please let me know why.
|
Hi modocache, You can suggest a python version of it if you like, and we can check it. Regards, |
|
I'm aware
Anyway, that's just my personal preference; Bash is fine, too. Let me know if you'd like to add |
|
Don't mind me, just passing through @swift-ci please smoke test |
|
⛵️ |
No description provided.