Skip to content

Commit ac87d14

Browse files
committed
add /bigobj
1 parent 9f15a10 commit ac87d14

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/iceberg/catalog/rest/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ iceberg_rest_lib = library(
3333
'iceberg_rest',
3434
sources: iceberg_rest_sources,
3535
dependencies: iceberg_rest_build_deps,
36+
cpp_args: iceberg_common_cpp_args,
3637
gnu_symbol_visibility: 'hidden',
3738
cpp_shared_args: ['-DICEBERG_REST_EXPORTING'],
3839
cpp_static_args: ['-DICEBERG_REST_STATIC'],

src/iceberg/meson.build

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18+
cpp = meson.get_compiler('cpp')
19+
iceberg_common_cpp_args = []
20+
if cpp.get_id() == 'msvc'
21+
iceberg_common_cpp_args += cpp.get_supported_arguments(['/bigobj'])
22+
endif
23+
1824
conf_data = configuration_data()
1925
version = meson.project_version()
2026
components = version.split('.')
@@ -121,6 +127,7 @@ iceberg_lib = library(
121127
dependencies: iceberg_deps,
122128
include_directories: iceberg_include_dir,
123129
install: true,
130+
cpp_args: iceberg_common_cpp_args,
124131
gnu_symbol_visibility: 'inlineshidden',
125132
cpp_shared_args: ['-DICEBERG_EXPORTING'],
126133
cpp_static_args: ['-DICEBERG_STATIC'],

0 commit comments

Comments
 (0)