Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Linux] determineArchitecture is not cross-compile aware
https://bugs.webkit.org/show_bug.cgi?id=169886 Reviewed by Michael Catanzaro. Try to detect the target architecture name from the GCC triplet when cross-building. The aarch64 architecture is renamed to arm64 (this is coherent with the rest of the perl tooling that consults the architecture determined in determineArchitecture(), the check for this arch is always done with the arm64 name). * Scripts/webkitdirs.pm: Remove the isARM() function: its dead code and not cross-build aware. (determineArchitecture): When crossbuilding, try to detect the target architecture name from the GCC triplet. Remove also the fallback option to run the arch command, because this command doesn't print the expected on Mac/BSD, and on Linux is the same than uname -m. See https://bugs.webkit.org/show_bug.cgi?id=152958#c6 (isCrossCompilation): Some cross-compilers (buildroot one for example) don't define the --host option. Add another option to detect that we are cross-building by building a dummy program and checking if we can run it. Canonical link: https://commits.webkit.org/186879@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@214250 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
2 changed files
with
58 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters