Skip to content

[build-script-impl] Add support for building benchmarks on linux but disable it in all currently defined presets for linux. #7860

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

Merged

Conversation

gottesmm
Copy link
Contributor

@gottesmm gottesmm commented Mar 2, 2017

Title says it all.

@gottesmm
Copy link
Contributor Author

gottesmm commented Mar 2, 2017

@swift-ci Please smoke test and merge

gottesmm added 2 commits March 1, 2017 19:47
…disable it in all currently defined presets for linux.
…unning the benchmarks.

No comparison is made. This is just for validation that things are working.
@gottesmm
Copy link
Contributor Author

gottesmm commented Mar 5, 2017

I am going to spend a little bit of time getting this in.

…6_64.

I put in a small little kludge to add support for this. The better solution is
to refactor the supports_benchmark property from Platform to Target. We
already have a similar abstraction problem with armv7 target on Darwin, where we
explicitly turn off benchmarking.

*NOTE* Building the benchmarks for linux still requires more cmake work. I am
making some changes in a subsequent commit series to do this. If you try to
compile the benchmarks, you will hit an error where ninja says that it doesn't
know about the swift-benchmark-linux-x86_64 target.
@gottesmm
Copy link
Contributor Author

gottesmm commented Mar 5, 2017

NOTE This is just the build-script work. I need to add some more stuff to get the cmake side to work.

@gottesmm
Copy link
Contributor Author

gottesmm commented Mar 5, 2017

@swift-ci Please smoke test and merge

1 similar comment
@gottesmm
Copy link
Contributor Author

gottesmm commented Mar 5, 2017

@swift-ci Please smoke test and merge

@gottesmm
Copy link
Contributor Author

gottesmm commented Mar 5, 2017

@airspeedswift In this PR I also added a mac os x preset that builds (and maybe, I am not sure) runs the benchmarks. Perfect for adding new benchmarks.

@gottesmm
Copy link
Contributor Author

gottesmm commented Mar 5, 2017

@airspeedswift You should be able to use the special preset triggering message to use it.

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