summaryrefslogtreecommitdiff
path: root/tests/projects/c++
diff options
context:
space:
mode:
authorruki <[email protected]>2024-09-12 22:37:10 +0800
committerruki <[email protected]>2024-09-12 22:37:10 +0800
commitc72f5f04b33f65c5b2fd4cae5037a1bdaf4dab84 (patch)
treee763ad0bb93d06262661c464106e403471dfd8c9 /tests/projects/c++
parente962066eca9967087a9a4495cf6a82fb2b4bd367 (diff)
improve test
Diffstat (limited to 'tests/projects/c++')
-rw-r--r--tests/projects/c++/shared_library_export_all/xmake.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/projects/c++/shared_library_export_all/xmake.lua b/tests/projects/c++/shared_library_export_all/xmake.lua
index 50043a52a..33d2c7d0c 100644
--- a/tests/projects/c++/shared_library_export_all/xmake.lua
+++ b/tests/projects/c++/shared_library_export_all/xmake.lua
@@ -9,7 +9,8 @@ target("bar")
set_kind("shared")
add_files("src/bar.cpp")
add_rules("utils.symbols.export_all", {export_filter = function (symbol, opt)
- if symbol:find("add", 1, true) then
+ local objectfile = opt.objectfile
+ if objectfile:find("bar.cpp", 1, true) and symbol:find("add", 1, true) then
return true
end
end})
@@ -20,3 +21,4 @@ target("demo")
add_files("src/main.cpp")
+