Changeset 215156 in webkit


Ignore:
Timestamp:
Apr 8, 2017 5:50:32 PM (7 years ago)
Author:
commit-queue@webkit.org
Message:

Elftoolchain ar doesn't support response files
https://bugs.webkit.org/show_bug.cgi?id=170105

Patch by Ting-Wei Lan <Ting-Wei Lan> on 2017-04-08
Reviewed by Michael Catanzaro.

WebKit enables the use of response files when cmake and ninja is used.
However, the default implementation of ar command used in FreeBSD, which
is part of elftoolchain project, doesn't support reading arguments from
response files. To avoid causing undefined reference error on FreeBSD,
we disable the use of response files when elftoolchain ar is detected.

  • Source/cmake/OptionsCommon.cmake:
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r215155 r215156  
     12017-04-08  Ting-Wei Lan  <lantw44@gmail.com>
     2
     3        Elftoolchain ar doesn't support response files
     4        https://bugs.webkit.org/show_bug.cgi?id=170105
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        WebKit enables the use of response files when cmake and ninja is used.
     9        However, the default implementation of ar command used in FreeBSD, which
     10        is part of elftoolchain project, doesn't support reading arguments from
     11        response files. To avoid causing undefined reference error on FreeBSD,
     12        we disable the use of response files when elftoolchain ar is detected.
     13
     14        * Source/cmake/OptionsCommon.cmake:
     15
    1162017-04-08  Michael Catanzaro  <mcatanzaro@igalia.com>
    217
  • trunk/Source/cmake/OptionsCommon.cmake

    r215155 r215156  
    216216   # If using Ninja with cmake >= 3.6.0 and icecream, then the build is broken
    217217   # if enable the response files. See https://bugs.webkit.org/show_bug.cgi?id=168770
    218    if (NOT ((((${CMAKE_CXX_COMPILER} MATCHES ".*ccache.*") AND ($ENV{CCACHE_PREFIX} MATCHES ".*icecc.*")) OR (${CMAKE_CXX_COMPILER} MATCHES ".*icecc.*")) AND (CMAKE_GENERATOR STREQUAL "Ninja") AND (${CMAKE_VERSION} VERSION_GREATER 3.5)))
    219        set(CMAKE_NINJA_FORCE_RESPONSE_FILE 1)
     218   if (NOT ((((${CMAKE_CXX_COMPILER} MATCHES ".*ccache.*") AND ($ENV{CCACHE_PREFIX} MATCHES ".*icecc.*"))
     219        OR (${CMAKE_CXX_COMPILER} MATCHES ".*icecc.*")
     220        OR (${AR_VERSION} MATCHES "^BSD ar [^ ]* - libarchive"))
     221       AND (CMAKE_GENERATOR STREQUAL "Ninja") AND (${CMAKE_VERSION} VERSION_GREATER 3.5)))
     222      set(CMAKE_NINJA_FORCE_RESPONSE_FILE 1)
    220223   endif ()
    221224endif ()
Note: See TracChangeset for help on using the changeset viewer.