Add std::filesystem support.

Test: ./run_tests.py --bitness 32
Test: ./run_tests.py --bitness 64
Test: ./run_tests.py --bitness 64 --host
Bug: None
Change-Id: Ie277f503b754321eba04b906fa4ee6d670b2c1b2
This commit is contained in:
Dan Albert
2018-12-12 13:45:05 -08:00
parent b2ed3ee88f
commit 4d4d6a8f06
5 changed files with 116 additions and 6 deletions

View File

@@ -14,6 +14,10 @@ class AndroidCXXCompiler(libcxx.compiler.CXXCompiler):
self.link_template = link_template
self.build_top = os.getenv('ANDROID_BUILD_TOP')
# The file system tests require a handful of defines that we can't add
# to the Android.bp since they require absolute paths.
self.extra_cflags = []
def copy(self):
return copy.deepcopy(self)
@@ -60,7 +64,7 @@ class AndroidCXXCompiler(libcxx.compiler.CXXCompiler):
source_files = [source_files]
cxx_args = self.cxx_template.replace('%OUT%', out)
cxx_args = cxx_args.replace('%SOURCE%', ' '.join(source_files))
return [self.path] + shlex.split(cxx_args)
return [self.path] + shlex.split(cxx_args) + self.extra_cflags
def linkCmd(self, source_files, out=None, flags=None):
if out is None: