@@ -143,12 +143,11 @@ cdata.set_quoted('PACKAGE_TARNAME', 'postgresql')
143
143
144
144
pg_version += get_option (' extra_version' )
145
145
cdata.set_quoted(' PG_VERSION' , pg_version)
146
- cdata.set_quoted(' PG_VERSION_STR' , ' PostgreSQL @0@ on @1@, compiled by @2@-@3@' .format(
147
- pg_version, build_machine .cpu_family(), cc.get_id(), cc.version()))
148
146
cdata.set_quoted(' PG_MAJORVERSION' , pg_version_major.to_string())
149
147
cdata.set(' PG_MAJORVERSION_NUM' , pg_version_major)
150
148
cdata.set(' PG_MINORVERSION_NUM' , pg_version_minor)
151
149
cdata.set(' PG_VERSION_NUM' , pg_version_num)
150
+ # PG_VERSION_STR is built later, it depends compiler test results
152
151
cdata.set_quoted(' CONFIGURE_ARGS' , '' )
153
152
154
153
@@ -2453,6 +2452,15 @@ cdata.set('MEMSET_LOOP_LIMIT', memset_loop_limit)
2453
2452
cdata.set_quoted(' DLSUFFIX' , dlsuffix)
2454
2453
2455
2454
2455
+ # built later than the rest of the version metadata, we need SIZEOF_VOID_P
2456
+ cdata.set_quoted(' PG_VERSION_STR' ,
2457
+ ' PostgreSQL @0@ on @1@-@2@, compiled by @3@-@4@, @5@-bit' .format(
2458
+ pg_version, host_machine .cpu_family(), host_system,
2459
+ cc.get_id(), cc.version(), cdata.get(' SIZEOF_VOID_P' ) * 8 ,
2460
+ )
2461
+ )
2462
+
2463
+
2456
2464
2457
2465
###############################################################
2458
2466
# Threading
0 commit comments