summaryrefslogtreecommitdiffstats
path: root/libcxx/utils
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-07-08 04:18:41 +0000
committerEric Fiselier <eric@efcs.ca>2017-07-08 04:18:41 +0000
commit433c2f08599eab3a3756646b65b17c1315e9fde3 (patch)
tree7a93dad55920a0e68c9369312d0cb06068a0c18e /libcxx/utils
parentc8dba240b1c66a552789980016ff761a3db398dd (diff)
downloadbcm5719-llvm-433c2f08599eab3a3756646b65b17c1315e9fde3.tar.gz
bcm5719-llvm-433c2f08599eab3a3756646b65b17c1315e9fde3.zip
Fix filesystem build on platforms with weird time_t types.
32-bit powerpc provides a 64 bit time_t type and older ppc64 systems provide time_t as a floating point type. This caused problems when building operations.cpp since operations.cpp contained compile time tests for conversions between time_t and filesystem time type. When these tests failed they caused the libc++ build to fail as well. This is unfortunate. This patch moves the tests out of the source file and into the test suite. It also expands the tests to allow testing of the weird time_t configurations on all platforms. llvm-svn: 307461
Diffstat (limited to 'libcxx/utils')
-rw-r--r--libcxx/utils/libcxx/test/config.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxx/utils/libcxx/test/config.py b/libcxx/utils/libcxx/test/config.py
index 3fc34b1cacf..2ee41924fe1 100644
--- a/libcxx/utils/libcxx/test/config.py
+++ b/libcxx/utils/libcxx/test/config.py
@@ -1019,6 +1019,7 @@ class Configuration(object):
cxx_path = pipes.quote(self.cxx.path)
# Configure compiler substitutions
sub.append(('%cxx', cxx_path))
+ sub.append(('%libcxx_src_root', self.libcxx_src_root))
# Configure flags substitutions
flags_str = ' '.join([pipes.quote(f) for f in self.cxx.flags])
compile_flags_str = ' '.join([pipes.quote(f) for f in self.cxx.compile_flags])
OpenPOWER on IntegriCloud