diff options
| author | star9029 <[email protected]> | 2024-12-11 19:00:13 +0800 |
|---|---|---|
| committer | star9029 <[email protected]> | 2024-12-11 19:00:13 +0800 |
| commit | 4fdfe591a19e81d9390a5c310b81f95d50ccf5f0 (patch) | |
| tree | 7b4f5984be87fcd486ce6c7b9c803c71be3a287f /xmake/modules | |
| parent | f2c9a6c2669c90e275753e1c1628dad7fca595da (diff) | |
Improve protobuf test
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/package/tools/cmake.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua index 6d7f15dce..e83f254d8 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -652,7 +652,7 @@ function _get_configs_for_cross(package, configs, opt) envs.CMAKE_CXX_COMPILER = _translate_bin_path(package:build_getenv("cxx")) envs.CMAKE_ASM_COMPILER = _translate_bin_path(package:build_getenv("as")) envs.CMAKE_AR = _translate_bin_path(package:build_getenv("ar")) - if package:is_plat("windows") and is_host("linux") then + if package:is_plat("windows") then envs.CMAKE_AR = path.join(path.directory(envs.CMAKE_CXX_COMPILER), "lib.exe") end _fix_cxx_compiler_cmake(package, envs) |
