diff options
| -rw-r--r-- | xmake/modules/detect/tools/link/has_flags.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/link/has_flags.lua b/xmake/modules/detect/tools/link/has_flags.lua index 01b2ef1dd..582f6ecf9 100644 --- a/xmake/modules/detect/tools/link/has_flags.lua +++ b/xmake/modules/detect/tools/link/has_flags.lua @@ -76,7 +76,8 @@ end function _check_try_running(flags, opt) -- make an stub source file - local winmain = flags:lower():find("subsystem:windows") + local flags_str = table.concat(flags, " "):lower() + local winmain = flags_str:find("subsystem:windows") local sourcefile = path.join(os.tmpdir(), "detect", ifelse(winmain, "winmain_", "") .. "link_has_flags.c") if not os.isfile(sourcefile) then if winmain then |
