uhmanoa-transpiler-project / shaka-scheme

The official repository for the UH Manoa Transpiler Project's Scheme interpreter, Shaka Scheme.
32 stars 24 forks source link

Known issue with building with Google Test on Mac OS X with clang++ #1

Closed CinchBlue closed 7 years ago

CinchBlue commented 7 years ago

Throughout the course of the project, we have had difficulty building for the project with clang++. Instead, we have opted for the c++ compiler alias that is available on most major platforms, and appears to be usually an alias for either g++ or clang++.

Note that linking in Google Test is often different when compiling with clang++ on Mac OS X due to a different linking scheme that differs from the project's preferred g++ settings.

In the future, we may adopt CMake support in order to get more acceptable cross-platform availability. But we are currently comfortable with using a simple GNU Make-based build system.

CinchBlue commented 7 years ago

Hi, can one of the two above test that the new CMake support on the master branch is working?

You'll have to clone googletest/googletest under the ./dep/ directory, but it should be easy to run CMake from inside CLion or by create a new ./build/ directory, going into it, running cmake ../ -G"Unix Makefiles" and then running make.

CinchBlue commented 7 years ago

We are adopting CLion which has in-built support for CMake. Our entire build system now consists of CMake paired with use of Google Test and Google Mock for building/testing/mocking.