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

@ -132,7 +132,8 @@ pub fn find(build: &mut Build) {
false
};
if cxx_configured {
// for VxWorks, record CXX compiler which will be used in lib.rs:linker()
if cxx_configured || target.contains("vxworks") {
let compiler = cfg.get_compiler();
build.cxx.insert(target, compiler);
}