From 22bc93e3eac36f077583faa90f515d436e4945df Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 9 Feb 2021 00:44:59 +0800 Subject: improve test with spaces --- tests/projects/c/static library with spaces/i n c/interface.h | 8 ++++++++ tests/projects/c/static library with spaces/s r c/interface.h | 8 -------- tests/projects/c/static library with spaces/xmake.lua | 2 +- xmake/core/tool/builder.lua | 1 + 4 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 tests/projects/c/static library with spaces/i n c/interface.h delete mode 100644 tests/projects/c/static library with spaces/s r c/interface.h diff --git a/tests/projects/c/static library with spaces/i n c/interface.h b/tests/projects/c/static library with spaces/i n c/interface.h new file mode 100644 index 000000000..10ec0f856 --- /dev/null +++ b/tests/projects/c/static library with spaces/i n c/interface.h @@ -0,0 +1,8 @@ +/*! calculate add(a, b) + * + * @param a the first argument + * @param b the second argument + * + * @return the result + */ +int add(int a, int b); diff --git a/tests/projects/c/static library with spaces/s r c/interface.h b/tests/projects/c/static library with spaces/s r c/interface.h deleted file mode 100644 index 10ec0f856..000000000 --- a/tests/projects/c/static library with spaces/s r c/interface.h +++ /dev/null @@ -1,8 +0,0 @@ -/*! calculate add(a, b) - * - * @param a the first argument - * @param b the second argument - * - * @return the result - */ -int add(int a, int b); diff --git a/tests/projects/c/static library with spaces/xmake.lua b/tests/projects/c/static library with spaces/xmake.lua index 3febc19f3..e05cd0ee5 100644 --- a/tests/projects/c/static library with spaces/xmake.lua +++ b/tests/projects/c/static library with spaces/xmake.lua @@ -3,7 +3,7 @@ add_rules("mode.release", "mode.debug") target("test") set_kind("static") add_files("s r c/interface.c") - add_includedirs("$(projectdir)/s r c", {public = true}) + add_includedirs("$(projectdir)/i n c", {public = true}) target("demo") set_kind("binary") diff --git a/xmake/core/tool/builder.lua b/xmake/core/tool/builder.lua index 3433813c9..7175cb7b6 100644 --- a/xmake/core/tool/builder.lua +++ b/xmake/core/tool/builder.lua @@ -378,6 +378,7 @@ function builder:_preprocess_flags(flags) unique[flag] = true end end +-- utils.dump(results) return results end -- cgit v1.3.1