{"action":"created","issue":{"url":"https://api.github.com/repos/google/souper/issues/221","repository_url":"https://api.github.com/repos/google/souper","labels_url":"https://api.github.com/repos/google/souper/issues/221/labels{/name}","comments_url":"https://api.github.com/repos/google/souper/issues/221/comments","events_url":"https://api.github.com/repos/google/souper/issues/221/events","html_url":"https://github.com/google/souper/issues/221","id":165961181,"number":221,"title":"Exclude clang-souper from build","user":{"login":"rgov","id":108767,"avatar_url":"https://avatars.githubusercontent.com/u/108767?v=3","gravatar_id":"","url":"https://api.github.com/users/rgov","html_url":"https://github.com/rgov","followers_url":"https://api.github.com/users/rgov/followers","following_url":"https://api.github.com/users/rgov/following{/other_user}","gists_url":"https://api.github.com/users/rgov/gists{/gist_id}","starred_url":"https://api.github.com/users/rgov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgov/subscriptions","organizations_url":"https://api.github.com/users/rgov/orgs","repos_url":"https://api.github.com/users/rgov/repos","events_url":"https://api.github.com/users/rgov/events{/privacy}","received_events_url":"https://api.github.com/users/rgov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-17T05:22:05Z","updated_at":"2016-07-17T22:43:48Z","closed_at":null,"body":"I'd like a build flag that excludes the `clang-souper` executable from compilation so that I do not need to check out the clang and compiler-rt sources. Something like this allows me to pass `-DBUILD_SCLANG=NO`:\r\n\r\n```diff\r\ndiff --git a/CMakeLists.txt b/CMakeLists.txt\r\nindex 5e490e9..7345cba 100644\r\n--- a/CMakeLists.txt\r\n+++ b/CMakeLists.txt\r\n@@ -275,6 +275,12 @@ target_link_libraries(extractor_tests souperExtractor ${GTEST_LIBS})\r\n target_link_libraries(inst_tests souperInst ${GTEST_LIBS})\r\n target_link_libraries(parser_tests souperParser ${GTEST_LIBS})\r\n \r\n+SET(BUILD_SCLANG 1 CACHE BOOL \"Build the clang-souper tool\")\r\n+if (NOT BUILD_SCLANG)\r\n+  message(STATUS \"Excluding clang-souper tool from build\")\r\n+  set_target_properties(souperClangTool clang-souper PROPERTIES EXCLUDE_FROM_ALL 1 EXCLUDE_FROM_DEFAULT_BUILD 1)\r\n+endif()\r\n+\r\n set(TEST_SOLVER \"\" CACHE STRING \"Solver command line argument to use in tests, e.g. -stp-path=/path/to/stp\")\r\n set(TEST_SYNTHESIS \"\" CACHE STRING \"Enable additional, computationally intensive synthesis tests\")\r\n \r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/google/souper/issues/comments/233208603","html_url":"https://github.com/google/souper/issues/221#issuecomment-233208603","issue_url":"https://api.github.com/repos/google/souper/issues/221","id":233208603,"user":{"login":"regehr","id":732536,"avatar_url":"https://avatars.githubusercontent.com/u/732536?v=3","gravatar_id":"","url":"https://api.github.com/users/regehr","html_url":"https://github.com/regehr","followers_url":"https://api.github.com/users/regehr/followers","following_url":"https://api.github.com/users/regehr/following{/other_user}","gists_url":"https://api.github.com/users/regehr/gists{/gist_id}","starred_url":"https://api.github.com/users/regehr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/regehr/subscriptions","organizations_url":"https://api.github.com/users/regehr/orgs","repos_url":"https://api.github.com/users/regehr/repos","events_url":"https://api.github.com/users/regehr/events{/privacy}","received_events_url":"https://api.github.com/users/regehr/received_events","type":"User","site_admin":false},"created_at":"2016-07-17T22:43:48Z","updated_at":"2016-07-17T22:43:48Z","body":"Please."}}
{"actor":{"display_login":"regehr"}}