diff options
| author | ruki <[email protected]> | 2023-11-03 00:41:08 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-11-03 00:41:08 +0800 |
| commit | c63207ba0564b1ad87b7d31df738da26c421e796 (patch) | |
| tree | 2aef463a92deff57a071de5bf4b3a12c3633ebe6 /tests | |
| parent | d92d8ad1fda4d9605d08ae4c44271d9273642a93 (diff) | |
add check_sizeof for target
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/apis/check_xxx/xmake.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/apis/check_xxx/xmake.lua b/tests/apis/check_xxx/xmake.lua index c670d0ee1..fdef4b472 100644 --- a/tests/apis/check_xxx/xmake.lua +++ b/tests/apis/check_xxx/xmake.lua @@ -19,6 +19,7 @@ target("foo") }]], {tryrun = true}) check_csnippets("INT_SIZE", 'printf("%d", sizeof(int)); return 0;', {output = true, number = true}) check_sizeof("LONG_SIZE", "long") + check_sizeof("STRING_SIZE", "std::string", {includes = "string"}) configvar_check_cincludes("HAS_STRING_AND_STDIO_H", {"string.h", "stdio.h"}) configvar_check_ctypes("HAS_WCHAR_AND_FLOAT", {"wchar_t", "float"}) configvar_check_links("HAS_PTHREAD", {"pthread", "m", "dl"}) |
