Skip to content

Commit 31a0503

Browse files
committed
[DF][Win] Fix compiler error C1128
Fix the following compiler error on Windows: ``` datasource_ntuple.cxx(1,1): error C1128: number of sections exceeded object file format limit: compile with /bigobj ```
1 parent 21514dc commit 31a0503

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tree/dataframe/test/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ endif()
113113

114114
if(root7)
115115
ROOT_ADD_GTEST(datasource_ntuple datasource_ntuple.cxx LIBRARIES ROOTDataFrame)
116+
if(MSVC)
117+
set_source_files_properties(datasource_ntuple.cxx PROPERTIES COMPILE_FLAGS /bigobj)
118+
endif()
116119

117120
if(NOT MSVC OR win_broken_tests)
118121
ROOT_ADD_GTEST(dataframe_snapshot_ntuple dataframe_snapshot_ntuple.cxx LIBRARIES ROOTDataFrame ROOTNTupleUtil)

0 commit comments

Comments
 (0)