https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87824

--- Comment #22 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
(In reply to Uroš Bizjak from comment #20)
> 
> I'd like to propose an alternative patch. The testsuite harness should
> simply ask libstdc++ for correct include paths, like in the to be attached
> patch.
> 
> (This is how libstdc++ testsuite determines correct include flags.)

Seems reasonable.

Filtering out flags not recognized by D would mean there's no need to touch
libstdc++.


# For the tests that mix C++ and D, need to know where headers are located.
set odir [lookfor_file ${gccpath} libstdc++-v3]
if { ${odir} != "" } {
    set cxxflags [exec sh ${odir}/scripts/testsuite_flags --build-includes]
    set idx [lsearch $cxxflags "-nostdinc++"]
    append flags [lreplace $cxxflags $idx $idx]
}

Reply via email to