-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added ARMCLANG compiler support for C/C++ #3717
Conversation
Is this a limitation of the toolchain or of this code? This should be explicitly mentioned in the documentation at least to avoid confusing people. |
The ARMCLANG toolchain supports shared libraries but the current implementation by us for the ARMCLANG compiler support in Meson doesn't include the required set of compiler options for building a shared library. |
The documentation should say why they are not supported rather than just that they won't work. |
@jpakkane I have updated the documentation. Can you please verify it once? |
It would be nice if the documentation said what needs to be done to get the shared library support working so interested contributors can get it working. But that can be put in a different PR. Merging this now. Thanks. |
$ flake8 | grep F401 ./mesonbuild/compilers/__init__.py:128:1: F401 '.c.ArmclangCCompiler' imported but unused ./mesonbuild/compilers/__init__.py:138:1: F401 '.cpp.ArmclangCPPCompiler' imported but unused ./mesonbuild/modules/__init__.py:4:1: F401 '..mlog' imported but unused PR mesonbuild#3717 imports ARMCLANG compilers in __init__, but does not add them to __all__, so they are not re-exported by the compilers package like everything else.
* Fix flake8 whitespace reports $ flake8 | grep -E '(E203|E221|E226|E303|W291|W293)' ./mesonbuild/coredata.py:337:5: E303 too many blank lines (2) * Fix flake8 'variable assigned value but unused' reports $ flake8 | grep -E F841 ./mesonbuild/modules/gnome.py:922:9: F841 local variable 'target_name' is assigned to but never used * Fix flake8 'imported but unused' reports $ flake8 | grep F401 ./mesonbuild/compilers/__init__.py:128:1: F401 '.c.ArmclangCCompiler' imported but unused ./mesonbuild/compilers/__init__.py:138:1: F401 '.cpp.ArmclangCPPCompiler' imported but unused ./mesonbuild/modules/__init__.py:4:1: F401 '..mlog' imported but unused PR #3717 imports ARMCLANG compilers in __init__, but does not add them to __all__, so they are not re-exported by the compilers package like everything else. * More details about flake8 in Contributing.md Mention that Sider runs flake8 Suggest seting flake8 as a pre-commit hook
The changes tested on Windows with ARM compiler version 6.5(MDK 5.21).
The attached files are the cross test results obtained from running the following command line
python .\run_cross_test.py cross\armclang.txt
armclang_cross_test_log.txt
meson-cross-test-run.txt
meson-cross-test-run.xml
Currently 46 tests are failing, 4 are being skipped and 151 tests are passing.