diff options
Diffstat (limited to 'tests/c_console/xmake.lua')
| -rwxr-xr-x | tests/c_console/xmake.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/c_console/xmake.lua b/tests/c_console/xmake.lua index 254b2823d..889055a4d 100755 --- a/tests/c_console/xmake.lua +++ b/tests/c_console/xmake.lua @@ -1,5 +1,5 @@ -- the debug mode -if modes("debug") then +if is_mode("debug") then -- enable the debug symbols set_symbols("debug") @@ -9,7 +9,7 @@ if modes("debug") then end -- the release mode -if modes("release") then +if is_mode("release") then -- set the symbols visibility: hidden set_symbols("hidden") @@ -22,7 +22,7 @@ if modes("release") then end -- add target -def_target("c_console") +target("c_console") -- set kind set_kind("binary") @@ -30,3 +30,4 @@ def_target("c_console") -- add files add_files("src/*.c") + |
