cflags.inc 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. CFLAGS(
  2. -DDLSUFFIX=\".so\"
  3. -Wno-ignored-attributes
  4. -Wno-unused-parameter
  5. -Wno-sign-compare
  6. -Wno-missing-field-initializers
  7. -Wno-incompatible-pointer-types-discards-qualifiers
  8. -Wno-implicit-function-declaration
  9. -Wno-duplicate-decl-specifier
  10. -Wno-unused-function
  11. -Wno-unused-variable
  12. -Wno-unused-but-set-variable
  13. -Wno-unused-private-field
  14. -Wno-register
  15. -Wno-unguarded-availability-new
  16. -Wno-int-conversion
  17. -Wno-deprecated-declarations
  18. -Wno-null-pointer-subtraction
  19. )
  20. IF (OS_WINDOWS)
  21. CFLAGS(
  22. "-D__thread=__declspec(thread)"
  23. -Dfstat=microsoft_native_fstat
  24. -Dstat=microsoft_native_stat
  25. -Wno-macro-redefined
  26. -Wno-shift-count-overflow
  27. -Wno-incompatible-pointer-types
  28. -Wno-integer-overflow
  29. -Wno-int-conversion
  30. -Wno-constant-conversion
  31. -Wno-tautological-constant-out-of-range-compare
  32. -Wno-pointer-sign
  33. -Wno-fortify-source
  34. )
  35. ENDIF()
  36. CFLAGS(
  37. -Dmonths=yql_months
  38. -Dpg_popcount32=yql_pg_popcount32
  39. -Dpg_popcount64=yql_pg_popcount64
  40. -Dpg_number_of_ones=yql_pg_number_of_ones
  41. -Dpg_leftmost_one_pos=yql_pg_leftmost_one_pos
  42. -Dpg_rightmost_one_pos=yql_pg_rightmost_one_pos
  43. -Darray_length=yql_array_length
  44. -Dpg_encoding_max_length=yql_pg_encoding_max_length
  45. -Dpg_encoding_mblen=yql_pg_encoding_mblen
  46. -Dpg_mule_mblen=yql_pg_mule_mblen
  47. -Dpg_utf8_islegal=yql_pg_utf8_islegal
  48. -Dpg_utf_mblen=yql_pg_utf_mblen
  49. -Dpg_wchar_table=yql_pg_wchar_table
  50. -Dunicode_to_utf8=yql_unicode_to_utf8
  51. -Dutf8_to_unicode=yql_utf8_to_unicode
  52. -Dpg_enc2name_tbl=yql_pg_enc2name_tbl
  53. -Dstrtoint=yql_strtoint
  54. -Dpalloc=yql_palloc
  55. -Dpalloc0=yql_palloc0
  56. -Dpfree=yql_pfree
  57. -Dpstrdup=yql_pstrdup
  58. -Drepalloc=yql_repalloc
  59. -Dpalloc_extended=yql_palloc_extended
  60. -Dpg_clean_ascii=yql_pg_clean_ascii
  61. -Dpg_str_endswith=yql_pg_str_endswith
  62. -Dpg_strip_crlf=yql_pg_strip_crlf
  63. -Dpg_encoding_dsplen=yql_pg_encoding_dsplen
  64. -Dpg_encoding_mblen_bounded=yql_pg_encoding_mblen_bounded
  65. -Dpg_encoding_verifymb=yql_pg_encoding_verifymb
  66. -Dpg_encoding_verifymbchar=yql_pg_encoding_verifymbchar
  67. -Dpg_encoding_verifymbstr=yql_pg_encoding_verifymbstr
  68. -Dunicode_normalize=yql_unicode_normalize
  69. -Ddurable_rename=yql_durable_rename
  70. -Dfsync_fname=yql_fsync_fname
  71. -Dget_encoding_name_for_icu=yql_get_encoding_name_for_icu
  72. -Dis_encoding_supported_by_icu=yql_is_encoding_supported_by_icu
  73. -Dpg_char_to_encoding=yql_pg_char_to_encoding
  74. -Dpg_enc2gettext_tbl=yql_pg_enc2gettext_tbl
  75. -Dpg_encoding_to_char=yql_pg_encoding_to_char
  76. -Dpg_valid_client_encoding=yql_pg_valid_client_encoding
  77. -Dpg_valid_server_encoding=yql_pg_valid_server_encoding
  78. -Dpg_valid_server_encoding_id=yql_pg_valid_server_encoding_id
  79. -Dpnstrdup=yql_pnstrdup
  80. -Dget_ps_display=yql_get_ps_display
  81. -Dinit_ps_display=yql_init_ps_display
  82. -Dsave_ps_display_args=yql_save_ps_display_args
  83. -Dset_ps_display=yql_set_ps_display
  84. -Dupdate_process_title=yql_update_process_title
  85. -Dlo_read=yql_lo_read
  86. -Dlo_write=yql_lo_write
  87. -Drtrim=yql_rtrim
  88. -Dstr_tolower=yql_str_tolower
  89. -Dstr_toupper=yql_str_toupper
  90. -Dpg_file_create_mode=yql_pg_file_create_mode
  91. -Dpg_dir_create_mode=yql_pg_dir_create_mode
  92. -Descape_json=yql_escape_json
  93. -DSetDataDirectoryCreatePerm=yql_SetDataDirectoryCreatePerm
  94. -Dpg_mode_mask=yql_pg_mode_mask
  95. -Dpg_strong_random=yql_pg_strong_random
  96. -Dpg_strong_random_init=yql_pg_strong_random_init
  97. -DScanKeywordBareLabel=yql_ScanKeywordBareLabel
  98. -DScanKeywordCategories=yql_ScanKeywordCategories
  99. -DScanKeywords=yql_ScanKeywords
  100. -Dscram_ClientKey=yql_scram_ClientKey
  101. -Dscram_H=yql_scram_H
  102. -Dscram_SaltedPassword=yql_scram_SaltedPassword
  103. -Dscram_ServerKey=yql_scram_ServerKey
  104. -Dscram_build_secret=yql_scram_build_secret
  105. -Dpg_is_ascii=yql_pg_is_ascii
  106. -DmakeJsonLexContextCstringLen=yql_makeJsonLexContextCstringLen
  107. -DIsValidJsonNumber=yql_IsValidJsonNumber
  108. -Djson_lex=yql_json_lex
  109. -Dpg_parse_json=yql_pg_parse_json
  110. -Djson_count_array_elements=yql_json_count_array_elements
  111. -DnullSemAction=yql_nullSemAction
  112. -Dpg_cryptohash_free=yql_pg_cryptohash_free
  113. -Dpg_cryptohash_final=yql_pg_cryptohash_final
  114. -Dpg_cryptohash_update=yql_pg_cryptohash_update
  115. -Dpg_cryptohash_init=yql_pg_cryptohash_init
  116. -Dpg_cryptohash_create=yql_pg_cryptohash_create
  117. -Dpg_hmac_free=yql_pg_hmac_free
  118. -Dpg_hmac_final=yql_pg_hmac_final
  119. -Dpg_hmac_update=yql_pg_hmac_update
  120. -Dpg_hmac_init=yql_pg_hmac_init
  121. -Dpg_hmac_create=yql_pg_hmac_create
  122. -Dpg_pwritev_with_retry=yql_pg_pwritev_with_retry
  123. -Dpg_cryptohash_error=yql_pg_cryptohash_error
  124. -Dpg_hmac_error=yql_pg_hmac_error
  125. -Dpg_global_prng_state=yql_pg_global_prng_state
  126. -Dpg_prng_bool=yql_pg_prng_bool
  127. -Dpg_prng_double=yql_pg_prng_double
  128. -Dpg_prng_int32p=yql_pg_prng_int32p
  129. -Dpg_prng_int32=yql_pg_prng_int32
  130. -Dpg_prng_uint32=yql_pg_prng_uint32
  131. -Dpg_prng_int64p=yql_pg_prng_int64p
  132. -Dpg_prng_int64=yql_pg_prng_int64
  133. -Dpg_prng_uint64_range=yql_pg_prng_uint64_range
  134. -Dpg_prng_uint64=yql_pg_prng_uint64
  135. -Dpg_prng_fseed=yql_pg_prng_fseed
  136. -Dpg_prng_seed_check=yql_pg_prng_seed_check
  137. -Dpg_prng_seed=yql_pg_prng_seed
  138. -Dpg_prng_double_normal=yql_pg_prng_double_normal
  139. -Djson_errdetail=yql_json_errdetail
  140. )