diff options
| author | ruki <[email protected]> | 2021-02-03 23:13:27 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-02-03 23:13:27 +0800 |
| commit | 75e5b14d79d3e123de666e0590ecd79816d848c5 (patch) | |
| tree | d8f9e71c74464f4dac20116213fb089e9e3975cc | |
| parent | 7dcf5af6dfde93b1380ea9f5e6d1a7eb83c6b34d (diff) | |
add gnu-rm toolchain test
| -rw-r--r-- | tests/projects/package/toolchain_gnu_rm/src/main.c | 7 | ||||
| -rw-r--r-- | tests/projects/package/toolchain_gnu_rm/xmake.lua | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/projects/package/toolchain_gnu_rm/src/main.c b/tests/projects/package/toolchain_gnu_rm/src/main.c new file mode 100644 index 000000000..9ae580511 --- /dev/null +++ b/tests/projects/package/toolchain_gnu_rm/src/main.c @@ -0,0 +1,7 @@ +#include <stdio.h> + +int main(int argc, char** argv) +{ + printf("hello world!\n"); + return 0; +} diff --git a/tests/projects/package/toolchain_gnu_rm/xmake.lua b/tests/projects/package/toolchain_gnu_rm/xmake.lua new file mode 100644 index 000000000..712114dbe --- /dev/null +++ b/tests/projects/package/toolchain_gnu_rm/xmake.lua @@ -0,0 +1,7 @@ +add_rules("mode.debug", "mode.release") +add_requires("gnu-rm") + +target("test") + set_kind("binary") + add_files("src/*.c") + set_toolchains("gnu-rm", {packages = "gnu-rm"}) |
