# HG changeset patch
# Parent c9fb71dd0383141099bbe01ff36128303e774f7a
Fix gdc testsuite failures on Solaris
@@ -925,3 +925,19 @@ version (NetBSD)
return q;
}
}
+
+version (Solaris)
+{
+ import core.sys.posix.sys.time;
+
+ double dtime()
+ {
+ double q;
+ timeval tv;
+
+ gettimeofday(&tv,null);
+ q = cast(double)tv.tv_sec + cast(double)tv.tv_usec * 1.0e-6;
+
+ return q;
+ }
+}
@@ -68,7 +68,7 @@ proc gdc_version { } {
#
proc gdc_include_flags { paths } {
- global srcdir
+ global srcdir target_triplet
global TESTING_IN_BUILD_TREE
set flags ""
@@ -78,7 +78,6 @@ proc gdc_include_flags { paths } {
}
set gccpath ${paths}
- set target [file tail [file normalize ${paths}]]
if { $gccpath != "" } {
if [file exists "${gccpath}/libphobos/libdruntime"] {
@@ -92,7 +91,7 @@ proc gdc_include_flags { paths } {
if { $gccpath != "" } {
if [file exists "${gccpath}/libstdc++-v3/include"] {
append flags "-I${gccpath}/libstdc++-v3/include "
- append flags "-I${gccpath}/libstdc++-v3/include/$target "
+ append flags "-I${gccpath}/libstdc++-v3/include/$target_triplet "
}
}
append flags "-I${srcdir}/../../libstdc++-v3/libsupc++"