File tree 1 file changed +2
-1
lines changed
xmake/modules/target/action/install
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,6 @@ function _update_install_rpath(target, opt)
158
158
local bindir = target :bindir ()
159
159
local targetfile = path .join (bindir , target :filename ())
160
160
if target :policy (" install.rpath" ) then
161
- rpath_utils .clean (targetfile , {plat = target :plat (), arch = target :arch ()})
162
161
local result , sources = target :get_from (" rpathdirs" , " *" )
163
162
if result and sources then
164
163
for idx , rpathdirs in ipairs (result ) do
@@ -169,6 +168,8 @@ function _update_install_rpath(target, opt)
169
168
local extra = extraconf [rpathdir ]
170
169
if extra and extra .installonly then
171
170
rpath_utils .insert (targetfile , rpathdir , {plat = target :plat (), arch = target :arch ()})
171
+ else
172
+ rpath_utils .remove (targetfile , rpathdir , {plat = target :plat (), arch = target :arch ()})
172
173
end
173
174
end
174
175
end
You can’t perform that action at this time.
0 commit comments