diff options
| -rw-r--r-- | xmake/modules/detect/tools/find_gcc.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/find_gcc.lua b/xmake/modules/detect/tools/find_gcc.lua index a4e0782e7..e785af2ad 100644 --- a/xmake/modules/detect/tools/find_gcc.lua +++ b/xmake/modules/detect/tools/find_gcc.lua @@ -22,7 +22,9 @@ import("lib.detect.find_program") import("lib.detect.find_programver") import("core.cache.detectcache") -import("core.base.winos") +if is_host("windows") then + import("core.base.winos") +end -- check gigabyte gcc function _check_gigabyte_gcc(program, opt) |
