summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")
+