summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorruki <[email protected]>2022-02-08 00:46:37 +0800
committerruki <[email protected]>2022-02-08 00:46:37 +0800
commita2abcd6ce23c4742481e0ce832d06498557c890e (patch)
treea2aa57e8711b6b9f906f2eb8924a6ce6d67c4808 /tests
parentf141767f666d1b29c3e6c00c00c6813b26baf48e (diff)
fix tests
Diffstat (limited to 'tests')
-rw-r--r--tests/projects/c/linker_scripts/test.lua3
-rw-r--r--tests/projects/c/linker_scripts/xmake.lua4
2 files changed, 3 insertions, 4 deletions
diff --git a/tests/projects/c/linker_scripts/test.lua b/tests/projects/c/linker_scripts/test.lua
index b76241be2..b57362078 100644
--- a/tests/projects/c/linker_scripts/test.lua
+++ b/tests/projects/c/linker_scripts/test.lua
@@ -1,6 +1,3 @@
--- main entry
function main(t)
-
- -- build project
t:build()
end
diff --git a/tests/projects/c/linker_scripts/xmake.lua b/tests/projects/c/linker_scripts/xmake.lua
index 51f17f68b..036c4b486 100644
--- a/tests/projects/c/linker_scripts/xmake.lua
+++ b/tests/projects/c/linker_scripts/xmake.lua
@@ -4,7 +4,9 @@ target("test")
add_deps("foo")
set_kind("binary")
add_files("src/main.c")
- add_files("src/main.lds")
+ if is_plat("linux") and is_arch("x86_64") then
+ add_files("src/main.lds")
+ end
target("foo")
set_kind("shared")