{"action":"created","issue":{"url":"https://api.github.com/repos/urho3d/Urho3D/issues/1910","repository_url":"https://api.github.com/repos/urho3d/Urho3D","labels_url":"https://api.github.com/repos/urho3d/Urho3D/issues/1910/labels{/name}","comments_url":"https://api.github.com/repos/urho3d/Urho3D/issues/1910/comments","events_url":"https://api.github.com/repos/urho3d/Urho3D/issues/1910/events","html_url":"https://github.com/urho3d/Urho3D/issues/1910","id":221884457,"number":1910,"title":"Android Studio: Could not check compiler toolchain as it does not handle '-E -dM' compiler","user":{"login":"sabotage3d","id":4654347,"avatar_url":"https://avatars3.githubusercontent.com/u/4654347?v=3","gravatar_id":"","url":"https://api.github.com/users/sabotage3d","html_url":"https://github.com/sabotage3d","followers_url":"https://api.github.com/users/sabotage3d/followers","following_url":"https://api.github.com/users/sabotage3d/following{/other_user}","gists_url":"https://api.github.com/users/sabotage3d/gists{/gist_id}","starred_url":"https://api.github.com/users/sabotage3d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabotage3d/subscriptions","organizations_url":"https://api.github.com/users/sabotage3d/orgs","repos_url":"https://api.github.com/users/sabotage3d/repos","events_url":"https://api.github.com/users/sabotage3d/events{/privacy}","received_events_url":"https://api.github.com/users/sabotage3d/received_events","type":"User","site_admin":false},"labels":[{"id":59038068,"url":"https://api.github.com/repos/urho3d/Urho3D/labels/bug","name":"bug","color":"fc2929","default":true},{"id":301786971,"url":"https://api.github.com/repos/urho3d/Urho3D/labels/build%20system","name":"build system","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-04-14T20:23:40Z","updated_at":"2017-05-04T12:43:31Z","closed_at":null,"body":"I am getting this error through Android Studio, but it works fine through terminal. If I bypass the lines in CheckCompilerToolchain.cmake it seems to work fine. Can we have this check optional?\r\n```\r\n-- Check for working C compiler: /Users/sabo/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang\r\n-- Check for working C compiler: /Users/sabo/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang -- works\r\n-- Detecting C compiler ABI info\r\n-- Detecting C compiler ABI info - done\r\n-- Detecting C compile features\r\n-- Detecting C compile features - done\r\n-- Check for working CXX compiler: /Users/sabo/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++\r\n-- Check for working CXX compiler: /Users/sabo/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ -- works\r\n-- Detecting CXX compiler ABI info\r\n-- Detecting CXX compiler ABI info - done\r\n-- Detecting CXX compile features\r\n-- Detecting CXX compile features - done\r\nCMake Error at CMake/Modules/CheckCompilerToolchain.cmake:161 (message):\r\n  Could not check compiler toolchain as it does not handle '-E -dM' compiler\r\n  flags correctly\r\nCall Stack (most recent call first):\r\n  CMake/Modules/UrhoCommon.cmake:98 (include)\r\n  CMakeLists.txt:18 (include)\r\n-- Configuring incomplete, errors occurred!\r\n```"},"comment":{"url":"https://api.github.com/repos/urho3d/Urho3D/issues/comments/299174131","html_url":"https://github.com/urho3d/Urho3D/issues/1910#issuecomment-299174131","issue_url":"https://api.github.com/repos/urho3d/Urho3D/issues/1910","id":299174131,"user":{"login":"sabotage3d","id":4654347,"avatar_url":"https://avatars3.githubusercontent.com/u/4654347?v=3","gravatar_id":"","url":"https://api.github.com/users/sabotage3d","html_url":"https://github.com/sabotage3d","followers_url":"https://api.github.com/users/sabotage3d/followers","following_url":"https://api.github.com/users/sabotage3d/following{/other_user}","gists_url":"https://api.github.com/users/sabotage3d/gists{/gist_id}","starred_url":"https://api.github.com/users/sabotage3d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabotage3d/subscriptions","organizations_url":"https://api.github.com/users/sabotage3d/orgs","repos_url":"https://api.github.com/users/sabotage3d/repos","events_url":"https://api.github.com/users/sabotage3d/events{/privacy}","received_events_url":"https://api.github.com/users/sabotage3d/received_events","type":"User","site_admin":false},"created_at":"2017-05-04T12:43:31Z","updated_at":"2017-05-04T12:43:31Z","body":"You have a good point I need to check which tool-chain is invoked. Compiling with gradle have the benefits of easier compiling of multiple ABIs and easier debugging of the code with Android Studio. At the moment I am still using the old way of compiling Urho3d as library for Android and having a separate Android Studio project for my application. If it still causing issues I think we can add flag ANDROID_STUDIO to CMake if it is enabled to skip this check. "}}
{"actor":{"display_login":"sabotage3d"}}