⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 160170 in webkit


Ignore:
Timestamp:
Dec 5, 2013, 4:38:15 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

Fix cross compilation on x86
https://bugs.webkit.org/show_bug.cgi?id=125295

Patch by Laszlo Vidacs <lac@inf.u-szeged.hu> on 2013-12-05
Reviewed by Zoltan Herczeg.

Certain compiler flags should not be added when cross compilation is enabled.

  • Scripts/webkitdirs.pm:

(runAutogenForAutotoolsProjectIfNecessary):
(generateBuildSystemFromCMakeProject):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r160167 r160170  
     12013-12-05  Laszlo Vidacs  <lac@inf.u-szeged.hu>
     2
     3        Fix cross compilation on x86
     4        https://bugs.webkit.org/show_bug.cgi?id=125295
     5
     6        Reviewed by Zoltan Herczeg.
     7
     8        Certain compiler flags should not be added when cross compilation is enabled.
     9
     10        * Scripts/webkitdirs.pm:
     11        (runAutogenForAutotoolsProjectIfNecessary):
     12        (generateBuildSystemFromCMakeProject):
     13
    1142013-12-05  Tamas Gergely  <tgergely.u-szeged@partner.samsung.com>
    215
  • trunk/Tools/Scripts/webkitdirs.pm

    r160035 r160170  
    18031803    # used on Chromium build.
    18041804    determineArchitecture();
    1805     if ($architecture ne "x86_64" && !isARM()) {
     1805    if ($architecture ne "x86_64" && !isARM() && !isCrossCompilation()) {
    18061806        $ENV{'CXXFLAGS'} = "-march=pentium4 -msse2 -mfpmath=sse " . ($ENV{'CXXFLAGS'} || "");
    18071807    }
     
    20232023    # between 32-bit and 64-bit architectures.
    20242024    determineArchitecture();
    2025     if ($architecture ne "x86_64" && !isARM()) {
     2025    if ($architecture ne "x86_64" && !isARM() && !isCrossCompilation()) {
    20262026        $ENV{'CXXFLAGS'} = "-march=pentium4 -msse2 -mfpmath=sse " . ($ENV{'CXXFLAGS'} || "");
    20272027    }
Note: See TracChangeset for help on using the changeset viewer.