{"comment":{"url":"https://api.github.com/repos/alexhultman/uWebSockets/comments/17429859","html_url":"https://github.com/alexhultman/uWebSockets/commit/d4e56bd1bef6939781d91121832601d5eaba0b24#commitcomment-17429859","id":17429859,"user":{"login":"lpinca","id":1443911,"avatar_url":"https://avatars.githubusercontent.com/u/1443911?v=3","gravatar_id":"","url":"https://api.github.com/users/lpinca","html_url":"https://github.com/lpinca","followers_url":"https://api.github.com/users/lpinca/followers","following_url":"https://api.github.com/users/lpinca/following{/other_user}","gists_url":"https://api.github.com/users/lpinca/gists{/gist_id}","starred_url":"https://api.github.com/users/lpinca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpinca/subscriptions","organizations_url":"https://api.github.com/users/lpinca/orgs","repos_url":"https://api.github.com/users/lpinca/repos","events_url":"https://api.github.com/users/lpinca/events{/privacy}","received_events_url":"https://api.github.com/users/lpinca/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"d4e56bd1bef6939781d91121832601d5eaba0b24","created_at":"2016-05-11T07:56:34Z","updated_at":"2016-05-11T07:56:34Z","body":"With the following config the result is very close to what you want:\r\n```\r\n['OS==\"mac\"', {\r\n  'xcode_settings': {\r\n    'MACOSX_DEPLOYMENT_TARGET': '10.7',\r\n    'CLANG_CXX_LANGUAGE_STANDARD': 'c++11',\r\n    'CLANG_CXX_LIBRARY': 'libc++',\r\n    'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO',\r\n    'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',\r\n    'GCC_THREADSAFE_STATICS': 'YES',\r\n    'GCC_ENABLE_CPP_RTTI': 'YES',\r\n    'OTHER_CFLAGS!': [ '-fno-strict-aliasing' ]\r\n  }\r\n}],\r\n```\r\n```\r\n-Os -mmacosx-version-min=10.7 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=c++11 -stdlib=libc++\r\n```\r\n\r\nCan't get rid of `-Os` https://github.com/nodejs/node-gyp/blob/master/gyp/pylib/gyp/xcode_emulation.py#L501"}}