Use -nostdlib++ instead of -nodefaultlibs
Host builds using libc++ used -nodefaultlibs to turn off the default C++ runtime, and then added back all the other necessary libraries. Clang supports -nostdlib++ since https://reviews.llvm.org/D47115 that removes the C++ runtime without affecting the other default libraries. Use -nostdlib++, and remove the lists of default libraries. Test: m checkbuild Change-Id: Ib8b761534f64fd7f881e14598e514783678e0b35
Loading
Please register or sign in to comment