forked from continuwuation/rocksdb
Summary: I am wanting to use std::counting_semaphore for something and the timing seems good to require C++20 support. The internets suggest: * GCC >= 10 is adequate, >= 11 preferred * Clang >= 10 is needed * Visual Studio >= 2019 is adquate And popular linux distributions look like this: * CentOS Stream 9 -> GCC 11.2 (CentOS 8 is EOL) * Ubuntu 22.04 LTS -> GCC 11.x (Ubuntu 20 just ended standard support) * Debian 12 (oldstable) -> GCC 12.2 * (Debian 11 has ended security updates, uses GCC 10.2) This required generating a new docker image based on Ubuntu 22 for CI using gcc. The existing Ubuntu 20 image works for covering appropriate clang versions (though we should maybe add a much later version as well, in the next increment of our Ubuntu 22 image; however the minimum available clang build from apt.llvm.org for Ubuntu 22 is clang 13). Update to SetDumpFilter is to quiet a mysterious gcc-13 warning-as-error. Removed --compile-no-warning-as-error from a cmake command line because cmake in the new docker image is too old for this option. Pull Request resolved: https://github.com/facebook/rocksdb/pull/13904 Test Plan: CI, one minor unit test added to verify std::counting_semaphor works Reviewed By: xingbowang Differential Revision: D81266435 Pulled By: pdillinger fbshipit-source-id: 26040eeccca7004416e29a6ff4f6ea93f2052684 |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| c_simple_example.c | ||
| CMakeLists.txt | ||
| column_families_example.cc | ||
| compact_files_example.cc | ||
| compaction_filter_example.cc | ||
| Makefile | ||
| multi_processes_example.cc | ||
| optimistic_transaction_example.cc | ||
| options_file_example.cc | ||
| README.md | ||
| rocksdb_backup_restore_example.cc | ||
| rocksdb_option_file_example.ini | ||
| simple_example.cc | ||
| transaction_example.cc | ||
- Compile RocksDB first by executing
make static_libin parent dir - Compile all examples:
cd examples/; make all