Skip to content

macOS and MSVC build support#31

Merged
johnstairs merged 15 commits intomainfrom
johnstairs/macos-support
Dec 8, 2022
Merged

macOS and MSVC build support#31
johnstairs merged 15 commits intomainfrom
johnstairs/macos-support

Conversation

@johnstairs
Copy link
Copy Markdown
Member

@johnstairs johnstairs commented Dec 8, 2022

Enabling a macOS smoke test job in the pipeline, similar to the Windows' one. To both smoke test scripts, we add the unit test model and make sure that the generated code compiles. This exposed an issue with compiling some of our generated code with MSVC. For HDF5, we delete the copy constructors for the "inner" types that are used to represent the data in a way that HDF5 supports. At the same time, we were implementing conversion operators to convert from the inner to outer types. Deep in the expansion of xtensor templates, we were getting errors that it was trying to use deleted copy constructors and assignment operators.

The solution is to move away from conversion operators and to instead pass a reference to an outer type to a ToOuter() method and populate it.

There were a few other minor changes that needed to be made in order to get the code compiling on Mac and Windows.

@johnstairs johnstairs requested a review from hansenms December 8, 2022 16:33
Base automatically changed from johnstairs/generate-feedback to main December 8, 2022 16:58
@johnstairs johnstairs force-pushed the johnstairs/macos-support branch from bd894d6 to b4cfe79 Compare December 8, 2022 17:00
@johnstairs johnstairs merged commit 94b7210 into main Dec 8, 2022
@johnstairs johnstairs deleted the johnstairs/macos-support branch December 8, 2022 17:35
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