allow linking of mixed c++ assemblies

This commit is contained in:
WorldofBay 2019-02-07 14:53:58 +01:00 committed by GitHub
parent cda4f94e28
commit b888c61634
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,6 +99,19 @@
return false
end
-- Can link mixed C++ with native projects
if cfg.language == "C++" then
if cfg.clr == p.ON then
return true
end
end
if target.language == "C++" then
if target.clr == p.ON then
return true
end
end
-- Can't link managed and unmanaged projects
local cfgManaged = project.isdotnet(cfg.project) or (cfg.clr ~= p.OFF)