-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate config checks based on feature test macros.
Uses the C++ feature test macros to generate configuration checks in both autoconf and CMake.
- Loading branch information
Showing
25 changed files
with
562 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
try_compile( | ||
PQXX_HAVE_CONCEPTS | ||
${PROJECT_BINARY_DIR} | ||
SOURCES ${PROJECT_SOURCE_DIR}/config-tests/PQXX_HAVE_CONCEPTS.cxx | ||
) | ||
|
||
try_compile( | ||
PQXX_HAVE_MULTIDIM | ||
${PROJECT_BINARY_DIR} | ||
SOURCES ${PROJECT_SOURCE_DIR}/config-tests/PQXX_HAVE_MULTIDIM.cxx | ||
) | ||
|
||
try_compile( | ||
PQXX_HAVE_SOURCE_LOCATION | ||
${PROJECT_BINARY_DIR} | ||
SOURCES ${PROJECT_SOURCE_DIR}/config-tests/PQXX_HAVE_SOURCE_LOCATION.cxx | ||
) | ||
|
||
try_compile( | ||
PQXX_HAVE_SPAN | ||
${PROJECT_BINARY_DIR} | ||
SOURCES ${PROJECT_SOURCE_DIR}/config-tests/PQXX_HAVE_SPAN.cxx | ||
) | ||
|
||
try_compile( | ||
PQXX_HAVE_SSIZE | ||
${PROJECT_BINARY_DIR} | ||
SOURCES ${PROJECT_SOURCE_DIR}/config-tests/PQXX_HAVE_SSIZE.cxx | ||
) | ||
|
||
try_compile( | ||
PQXX_HAVE_UNREACHABLE | ||
${PROJECT_BINARY_DIR} | ||
SOURCES ${PROJECT_SOURCE_DIR}/config-tests/PQXX_HAVE_UNREACHABLE.cxx | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Feature check for '__cpp_concepts'. | ||
// Generated by generate_cxx_checks.py at 2023-11-11 02:23:59.388992 UTC. | ||
#include <version> | ||
#if !defined(PQXX_HAVE_CONCEPTS) || !PQXX_HAVE_CONCEPTS | ||
#error "No support for __cpp_concepts detected." | ||
#endif | ||
|
||
int main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Feature check for '__cpp_multidimensional_subscript'. | ||
// Generated by generate_cxx_checks.py at 2023-11-11 02:23:59.389103 UTC. | ||
#include <version> | ||
#if !defined(PQXX_HAVE_MULTIDIM) || !PQXX_HAVE_MULTIDIM | ||
#error "No support for __cpp_multidimensional_subscript detected." | ||
#endif | ||
|
||
int main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Feature check for '__cpp_lib_source_location'. | ||
// Generated by generate_cxx_checks.py at 2023-11-11 02:23:59.389166 UTC. | ||
#include <version> | ||
#if !defined(PQXX_HAVE_SOURCE_LOCATION) || !PQXX_HAVE_SOURCE_LOCATION | ||
#error "No support for __cpp_lib_source_location detected." | ||
#endif | ||
|
||
int main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Feature check for '__cpp_lib_span'. | ||
// Generated by generate_cxx_checks.py at 2023-11-11 02:23:59.389230 UTC. | ||
#include <version> | ||
#if !defined(PQXX_HAVE_SPAN) || !PQXX_HAVE_SPAN | ||
#error "No support for __cpp_lib_span detected." | ||
#endif | ||
|
||
int main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Feature check for '__cpp_lib_ssize'. | ||
// Generated by generate_cxx_checks.py at 2023-11-11 02:23:59.389294 UTC. | ||
#include <version> | ||
#if !defined(PQXX_HAVE_SSIZE) || !PQXX_HAVE_SSIZE | ||
#error "No support for __cpp_lib_ssize detected." | ||
#endif | ||
|
||
int main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Feature check for '__cpp_lib_unreachable'. | ||
// Generated by generate_cxx_checks.py at 2023-11-11 02:23:59.389360 UTC. | ||
#include <version> | ||
#if !defined(PQXX_HAVE_UNREACHABLE) || !PQXX_HAVE_UNREACHABLE | ||
#error "No support for __cpp_lib_unreachable detected." | ||
#endif | ||
|
||
int main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.