Changeset 194832 in webkit


Ignore:
Timestamp:
Jan 10, 2016 1:56:07 PM (8 years ago)
Author:
commit-queue@webkit.org
Message:

[webkitdirs] Try arch and uname commands on non-windows OS
https://bugs.webkit.org/show_bug.cgi?id=152958

Patch by Konstantin Tokarev <Konstantin Tokarev> on 2016-01-10
Reviewed by Michael Catanzaro.

Right now, determineArchitecture() uses arch and uname -m

commands to determine architecture in case of condition (isGtk() isAppleMacWebKit()
isEfl()) is true. This should be !anyWindows()

instead, because this code is applicable to any non-windows OS WebKit
supports (even Haiku which once was supported is moderately
POSIX-compliant and has uname command).

  • Scripts/webkitdirs.pm:

(determineArchitecture):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r194768 r194832  
     12016-01-10  Konstantin Tokarev  <annulen@yandex.ru>
     2
     3        [webkitdirs] Try arch and uname commands on non-windows OS
     4        https://bugs.webkit.org/show_bug.cgi?id=152958
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        Right now, determineArchitecture()  uses `arch` and `uname -m`
     9        commands to determine architecture in case of condition (isGtk() ||
     10        isAppleMacWebKit() || isEfl()) is true. This should be !anyWindows()
     11        instead, because this code is applicable to any non-windows OS WebKit
     12        supports (even Haiku which once was supported is moderately
     13        POSIX-compliant and has uname command).
     14
     15        * Scripts/webkitdirs.pm:
     16        (determineArchitecture):
     17
    1182016-01-08  Aakash Jain  <aakash_jain@apple.com>
    219
  • trunk/Tools/Scripts/webkitdirs.pm

    r192774 r194832  
    348348    }
    349349
    350     if (!$architecture && (isGtk() || isAppleMacWebKit() || isEfl())) {
    351         # Fall back to output of `arch', if it is present.
    352         $architecture = `arch`;
    353         chomp $architecture;
    354     }
    355 
    356     if (!$architecture && (isGtk() || isAppleMacWebKit() || isEfl())) {
    357         # Fall back to output of `uname -m', if it is present.
    358         $architecture = `uname -m`;
    359         chomp $architecture;
     350    if (!isAnyWindows()) {
     351        if (!$architecture) {
     352            # Fall back to output of `arch', if it is present.
     353            $architecture = `arch`;
     354            chomp $architecture;
     355        }
     356
     357        if (!$architecture) {
     358            # Fall back to output of `uname -m', if it is present.
     359            $architecture = `uname -m`;
     360            chomp $architecture;
     361        }
    360362    }
    361363
Note: See TracChangeset for help on using the changeset viewer.