Changeset 219228 in webkit


Ignore:
Timestamp:
Jul 6, 2017 6:11:00 PM (7 years ago)
Author:
commit-queue@webkit.org
Message:

[Win] Build precompiled header successfully with clang-cl
https://bugs.webkit.org/show_bug.cgi?id=174221

Patch by Stephan Szabo <stephan.szabo@sony.com> on 2017-07-06
Reviewed by Alex Christensen.

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

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r219186 r219228  
     12017-07-06  Stephan Szabo  <stephan.szabo@sony.com>
     2
     3        [Win] Build precompiled header successfully with clang-cl
     4        https://bugs.webkit.org/show_bug.cgi?id=174221
     5
     6        Reviewed by Alex Christensen.
     7
     8        * Source/cmake/WebKitMacros.cmake:
     9
    1102017-07-05  Yusuke Suzuki  <utatane.tea@gmail.com>
    211
  • trunk/Source/cmake/WebKitMacros.cmake

    r218357 r219228  
    3535        set(_sources ${${_source}})
    3636
    37         set_source_files_properties(${_cpp}
    38             PROPERTIES COMPILE_FLAGS "/Yc\"${_header}\" /Fp\"${PrecompiledBinary}\""
    39             OBJECT_OUTPUTS "${PrecompiledBinary}")
     37        # clang-cl requires /FI with /Yc
     38        if (COMPILER_IS_CLANG_CL)
     39            set_source_files_properties(${_cpp}
     40                PROPERTIES COMPILE_FLAGS "/Yc\"${_header}\" /Fp\"${PrecompiledBinary}\" /FI\"${_header}\""
     41                OBJECT_OUTPUTS "${PrecompiledBinary}")
     42        else ()
     43            set_source_files_properties(${_cpp}
     44                PROPERTIES COMPILE_FLAGS "/Yc\"${_header}\" /Fp\"${PrecompiledBinary}\""
     45                OBJECT_OUTPUTS "${PrecompiledBinary}")
     46        endif ()
    4047        set_source_files_properties(${_sources}
    4148            PROPERTIES COMPILE_FLAGS "/Yu\"${_header}\" /FI\"${_header}\" /Fp\"${PrecompiledBinary}\"")
Note: See TracChangeset for help on using the changeset viewer.