Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cmake #654

Merged
merged 49 commits into from
Mar 28, 2019
Merged

Cmake #654

merged 49 commits into from
Mar 28, 2019

Conversation

rdaly525
Copy link
Owner

@rdaly525 rdaly525 commented Jan 17, 2019

This PR is Cmakeifying CoreIR.

Tests are not being done using cmake currently.

A large chunk of the files changed are due to fixing warnings when building the release version of cmake. These are fixed by changing assert -> ASSERT and by using a new coreir_unreachable() macro.

Copy link
Collaborator

@leonardt leonardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nitpicks on commented code. This looks like a good upgrade from the current Make based build system. One question, does this handle rebuilding targets when a header file dependency changes? It wasn't clear to me that it does unless cmake handles it automatically when you specify includes.

CMakeLists.txt Outdated
endif()

set(CMAKE_CXX_FLAGS "-std=c++11 -Wall -fPIC -Werror")
#CXXFLAGS = -std=c++11 -Wall -fPIC -Werror -ferror-limit=5
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this comment?

)


#TARGETS coreir coreirsim coreir-commonlib
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this comment?

COMMENT "Copying to lib/"
)

endforeach()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

foreach is a nice feature

@leonardt
Copy link
Collaborator

I think it's okay to merge this before tests have been migrated, since this seems like it will make it easier to work with the build system.

@rdaly525
Copy link
Owner Author

@leonardt, it does seem to incrementally rebuild appropriately when I edit some .h files.

@rdaly525 rdaly525 merged commit f3d36eb into dev Mar 28, 2019
@rdaly525 rdaly525 deleted the cmake branch March 28, 2019 03:12
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.

3 participants