[all-commits] [llvm/llvm-project] 8508b1: [libc++] Divorce the std Lit feature from the -std...

Louis Dionne via All-commits all-commits at lists.llvm.org
Mon Apr 12 08:55:59 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8508b1c133f6dea558fd62f73cf333bdec809026
      https://github.com/llvm/llvm-project/commit/8508b1c133f6dea558fd62f73cf333bdec809026
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2021-04-12 (Mon, 12 Apr 2021)

  Changed paths:
    M libcxx/cmake/caches/Generic-cxx20.cmake
    M libcxx/docs/TestingLibcxx.rst
    M libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/sized_delete_array11.pass.cpp
    M libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete11.pass.cpp
    M libcxx/test/std/strings/basic.string/string.contains/contains.char.pass.cpp
    M libcxx/test/std/strings/basic.string/string.contains/contains.ptr.pass.cpp
    M libcxx/test/std/strings/basic.string/string.contains/contains.string_view.pass.cpp
    M libcxx/test/std/strings/string.view/string.view.template/contains.char.pass.cpp
    M libcxx/test/std/strings/string.view/string.view.template/contains.ptr.pass.cpp
    M libcxx/test/std/strings/string.view/string.view.template/contains.string_view.pass.cpp
    M libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_scoped_enum.pass.cpp
    M libcxx/test/std/utilities/utility/utility.underlying/to_underlying.pass.cpp
    M libcxx/test/std/utilities/utility/utility.underlying/to_underlying.verify.cpp
    M libcxx/utils/libcxx/test/params.py

  Log Message:
  -----------
  [libc++] Divorce the std Lit feature from the -std=XXX compiler flag

After this patch, we can use `--param std=c++20` even if the compiler only
supports -std=c++2a. The test suite will handle that for us. The only Lit
feature that isn't fully baked will always be the "in development" one,
since we don't know exactly what year the standard will be ratified in.

This is another take on https://reviews.llvm.org/D99789.

Differential Revision: https://reviews.llvm.org/D100210




More information about the All-commits mailing list