For VxWorks:

fix building errors
use wr-c++ as linker
This commit is contained in:
Pang, Baoshan
2020-08-07 16:55:15 -07:00
parent e15510ca33
commit 079baafdf1
5 changed files with 11 additions and 15 deletions

View File

@@ -857,6 +857,10 @@ impl Build {
if let Some(linker) = self.config.target_config.get(&target).and_then(|c| c.linker.as_ref())
{
Some(linker)
} else if target.contains("vxworks") {
// need to use CXX compiler as linker to resolve the exception functions
// that are only existed in CXX libraries
Some(self.cxx[&target].path())
} else if target != self.config.build
&& util::use_host_linker(target)
&& !target.contains("msvc")