Changeset 145574 in webkit


Ignore:
Timestamp:
Mar 12, 2013 12:43:41 PM (11 years ago)
Author:
gavinp@chromium.org
Message:

[chromium] Use lipo(1) rather than file(1) to list library architectures.
https://bugs.webkit.org/show_bug.cgi?id=111147

Parsing file(1) output can be fragile; this patch replaces a use of file(1) to get
the architecture list of a library with an invocation of lipo(1), which should be more
stable.

Reviewed by Nico Weber.

No new tests, since adjust_visibility.sh doesn't have a test.

  • WebCore.gyp/mac/adjust_visibility.sh:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r145569 r145574  
     12013-03-12  Gavin Peters  <gavinp@chromium.org>
     2
     3        [chromium] Use lipo(1) rather than file(1) to list library architectures.
     4        https://bugs.webkit.org/show_bug.cgi?id=111147
     5
     6        Parsing file(1) output can be fragile; this patch replaces a use of file(1) to get
     7        the architecture list of a library with an invocation of lipo(1), which should be more
     8        stable.
     9
     10        Reviewed by Nico Weber.
     11
     12        No new tests, since adjust_visibility.sh doesn't have a test.
     13
     14        * WebCore.gyp/mac/adjust_visibility.sh:
     15
    1162013-03-12  Viatcheslav Ostapenko  <sl.ostapenko@samsung.com>
    217
  • trunk/Source/WebCore/WebCore.gyp/mac/adjust_visibility.sh

    r110790 r145574  
    5656# ar doesn't operate on fat files.  Figure out what architectures are
    5757# involved.
    58 ARCHS=$(file "${INPUT}" | sed -Ene 's/^.*\(for architecture (.+)\):.*$/\1/p')
     58ARCHS=$(lipo -info "${INPUT}" | sed -Ene 's/^.* are: (.+)/\1/p')
    5959if [ -z "${ARCHS}" ] ; then
    6060  ARCHS=self
Note: See TracChangeset for help on using the changeset viewer.