Fix CI builds (#8161)

* Update build.yml

Upgrade to gcc 13 and clang 15

* switch to __is_trivially_copyable

* fix cmake issue and warning about sign comparison

* Use libc++ for C++23 on clang for now

* Use libc++ for C++23 on clang for now

* exclude clang+15 for C++13 builds
This commit is contained in:
Derek Bailey
2023-11-18 00:19:03 -08:00
committed by GitHub
parent 755573bcda
commit 4354945727
4 changed files with 19 additions and 14 deletions

View File

@@ -556,7 +556,11 @@ if(FLATBUFFERS_BUILD_TESTS)
# Add a library so there is a single target that the generated samples can
# link too.
add_library(flatsample INTERFACE)
if(MSVC)
add_library(flatsample INTERFACE)
else()
add_library(flatsample STATIC)
endif()
# Since flatsample has no sources, we have to explicitly set the linker lang.
set_target_properties(flatsample PROPERTIES LINKER_LANGUAGE CXX)