Skip to content

Commit

Permalink
[qt5] Fix regression from dd6d1aa. When building a static triplet, re…
Browse files Browse the repository at this point in the history
…peat the build on failure.
  • Loading branch information
ras0219-msft committed Mar 7, 2017
1 parent 3eb0526 commit e3d9627
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ports/qt5/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,14 @@ vcpkg_execute_required_process(
message(STATUS "Configure ${TARGET_TRIPLET} done")

message(STATUS "Building ${TARGET_TRIPLET}")
vcpkg_execute_required_process(
# Multiple executions are required due to https://bugreports.qt.io/browse/QTBUG-53393
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
set(COUNT 1)
else()
set(COUNT 3)
endif()
vcpkg_execute_required_process_repeat(
COUNT ${COUNT}
COMMAND ${JOM}
WORKING_DIRECTORY ${OUTPUT_PATH}
LOGNAME build-${TARGET_TRIPLET}
Expand Down

0 comments on commit e3d9627

Please sign in to comment.