diff options
| author | ruki <[email protected]> | 2021-05-26 23:30:44 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-05-26 23:30:44 +0800 |
| commit | 9177f156bb1b70fb7adea5c10b6db22012048769 (patch) | |
| tree | eef35bde44f533987e18666886f8b47a7bca9684 /xmake/modules/detect/tools | |
| parent | 7d1291b310e771c903922ebf4502372c7339c72e (diff) | |
remove more ifelse again
Diffstat (limited to 'xmake/modules/detect/tools')
| -rw-r--r-- | xmake/modules/detect/tools/link/has_flags.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/link/has_flags.lua b/xmake/modules/detect/tools/link/has_flags.lua index 819a84279..e0e2d8292 100644 --- a/xmake/modules/detect/tools/link/has_flags.lua +++ b/xmake/modules/detect/tools/link/has_flags.lua @@ -76,7 +76,7 @@ function _check_try_running(flags, opt) -- make an stub source file 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") + local sourcefile = path.join(os.tmpdir(), "detect", (winmain and "winmain_" or "") .. "link_has_flags.c") if not os.isfile(sourcefile) then if winmain then io.writefile(sourcefile, "int WinMain(void* instance, void* previnst, char** argv, int argc)\n{return 0;}") |
