Skip to content

Commit

Permalink
improve to select runtimes
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Sep 5, 2024
1 parent fe2154b commit 6926dc8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions xmake/modules/private/action/require/impl/package.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1011,6 +1011,13 @@ function _load_package(packagename, requireinfo, opt)
-- check package configurations
_check_package_configurations(package)

-- we need to check package toolchains before on_load and select runtimes,
-- because we will call compiler-specific apis in on_load/on_fetch/find_package ..
--
-- @see https://github.com/xmake-io/xmake/pull/5466
-- https://github.com/xmake-io/xmake/issues/4596#issuecomment-2014528801
_check_package_toolchains(package)

-- we need to select package runtimes before computing buildhash
-- @see https://github.com/xmake-io/xmake/pull/4630#issuecomment-1910216561
_select_package_runtimes(package)
Expand Down

0 comments on commit 6926dc8

Please sign in to comment.