Skip to content

[cmake] Use a helper macro to simplify adding sources to the SILOptim… #16969

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

Conversation

gottesmm
Copy link
Contributor

@gottesmm gottesmm commented Jun 3, 2018

…izer library.

All this does is automate the creation of the ${DIRNAME}_SOURCES variables that we already create and allows for the author to avoid having to prefix with the directory name, i.e.:

set(FOOBAR_SOURCES
FooBar/Source.cpp
PARENT_SCOPE)

=>

silopt_register_sources(
Source.cpp)

Much easier and cleaner to read. I put the code that implements this in the
CMakeLists.txt file just for the SILOptimizer.


I have been meaning to do this for a minute. Finally got around to it.

@gottesmm gottesmm requested review from atrick and eeckstein June 3, 2018 19:22
@gottesmm
Copy link
Contributor Author

gottesmm commented Jun 3, 2018

@swift-ci smoke test

@gottesmm gottesmm closed this Jun 28, 2018
@gottesmm gottesmm deleted the pr-806c5074b4e653fcd640cc00f2c9726d94ad5e3d branch June 28, 2018 00:09
@gottesmm gottesmm restored the pr-806c5074b4e653fcd640cc00f2c9726d94ad5e3d branch June 28, 2018 00:09
@gottesmm
Copy link
Contributor Author

Just cleaning up my branches.

@gottesmm gottesmm reopened this Jun 28, 2018
@gottesmm gottesmm force-pushed the pr-806c5074b4e653fcd640cc00f2c9726d94ad5e3d branch 2 times, most recently from 9c046ee to 4a66e7f Compare June 28, 2018 00:25
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

1 similar comment
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

…izer library.

All this does is automate the creation of the ${DIRNAME}_SOURCES variables that we already create and allows for the author to avoid having to prefix with the directory name, i.e.:

set(FOOBAR_SOURCES
  FooBar/Source.cpp
  PARENT_SCOPE)

=>

silopt_register_sources(
  Source.cpp)

Much easier and cleaner to read. I put the code that implements this in the
CMakeLists.txt file just for the SILOptimizer.
@gottesmm gottesmm force-pushed the pr-806c5074b4e653fcd640cc00f2c9726d94ad5e3d branch from 4a66e7f to 9e70b85 Compare June 28, 2018 00:50
@gottesmm
Copy link
Contributor Author

Fixed the remaining cmake issues. I was doing something stupid = (.

@gottesmm
Copy link
Contributor Author

@swift-ci smoke test and merge

1 similar comment
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test and merge

@swift-ci swift-ci merged commit ad7cbb3 into swiftlang:master Jun 28, 2018
@gottesmm gottesmm deleted the pr-806c5074b4e653fcd640cc00f2c9726d94ad5e3d branch June 28, 2018 15:34
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