[libcxx-commits] [libcxx] a4ef2a7 - [libc++] Move some misplaced compile-time flags

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Mar 17 14:53:30 PDT 2020


Author: Louis Dionne
Date: 2020-03-17T17:53:20-04:00
New Revision: a4ef2a71d38fb4f032b96eb1e5108745993f1882

URL: https://github.com/llvm/llvm-project/commit/a4ef2a71d38fb4f032b96eb1e5108745993f1882
DIFF: https://github.com/llvm/llvm-project/commit/a4ef2a71d38fb4f032b96eb1e5108745993f1882.diff

LOG: [libc++] Move some misplaced compile-time flags

Some compilation-only flags were in %flags, but they should have been
in %compile_flags only.

Added: 
    

Modified: 
    libcxx/utils/libcxx/test/config.py

Removed: 
    


################################################################################
diff  --git a/libcxx/utils/libcxx/test/config.py b/libcxx/utils/libcxx/test/config.py
index e9a26949f00d..459a5ccdf225 100644
--- a/libcxx/utils/libcxx/test/config.py
+++ b/libcxx/utils/libcxx/test/config.py
@@ -602,7 +602,7 @@ def configure_default_compile_flags(self):
 
         # FIXME(EricWF): variant_size.pass.cpp requires a slightly larger
         # template depth with older Clang versions.
-        self.cxx.addFlagIfSupported('-ftemplate-depth=270')
+        self.cxx.addCompileFlagIfSupported('-ftemplate-depth=270')
 
     def configure_compile_flags_header_includes(self):
         support_path = os.path.join(self.libcxx_src_root, 'test', 'support')
@@ -1200,7 +1200,7 @@ def configure_deployment(self):
                 self.config.available_features.add('dylib-has-no-filesystem')
                 self.lit_config.note("the deployment target does not support <filesystem>")
         else:
-            self.cxx.flags += ['-D_LIBCPP_DISABLE_AVAILABILITY']
+            self.cxx.compile_flags += ['-D_LIBCPP_DISABLE_AVAILABILITY']
 
     def configure_env(self):
         self.target_info.configure_env(self.exec_env)


        


More information about the libcxx-commits mailing list