Skip to content

[ISSUE-10] Implemented propagation of pg sphere version. #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 28, 2023

Conversation

vitcpp
Copy link
Contributor

@vitcpp vitcpp commented Jun 27, 2023

Implemented propagation of pg sphere version from Makefile into the code. Fixed pg_sphere_version function.

@vitcpp
Copy link
Contributor Author

vitcpp commented Jun 27, 2023

It seems there are build problems on 11+ versions. The error is occured when compiling with clang. It seems PG_CFLAGS is not used with clang. Not sure, how clang compilation is performed. I see no clang rules. It is interesting that there is no clang compilation with 10 version. Investigating it.

@vitcpp vitcpp force-pushed the 10-pgsphere-version branch from f38b142 to 894f9bb Compare June 27, 2023 11:57
@vitcpp
Copy link
Contributor Author

vitcpp commented Jun 27, 2023

The problem with clang was because of JIT compilation (--with-llwm option). Variables PG_CXXFLAGS, PG_CFLAGS are not propagated into clang compilation. Using PG_CPPFLAGS fixes the problem.

@vitcpp
Copy link
Contributor Author

vitcpp commented Jun 28, 2023

@esabol thank you for the review. I'm going to merge this PR because there are no objections.

@vitcpp vitcpp closed this Jun 28, 2023
@vitcpp vitcpp reopened this Jun 28, 2023
@vitcpp vitcpp merged commit 472b209 into postgrespro:master Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants