[clang] Fix crash in analysis of ios apps with json

Reviewed By: jvillard

Differential Revision: D4105295

fbshipit-source-id: bdc6570
master
Dulma Churchill 8 years ago committed by Facebook Github Bot
parent 73c5dfdfa4
commit 6b793a34b5

@ -36,10 +36,6 @@ let plugin_path = fcp_dir /\/ "libtooling" /\/ "build" /\/ "FacebookClangPlugin.
let plugin_name = "BiniouASTExporter";
/** are we running as Apple's clang? */
let has_apple_clang = Config.fcp_apple_clang != None;
/** whether to amend include search path with C++ model headers */
let infer_cxx_models = Config.cxx_experimental;
@ -170,7 +166,11 @@ let with_plugin_args args => {
YojsonASTExporter plugin are used. Since the -plugin argument disables the generation of .o
files, we invoke apple clang again to generate the expected artifacts. This will keep
xcodebuild plus all the sub-steps happy. */
if has_apple_clang {"-plugin"} else {"-add-plugin"},
if (has_flag args "-fmodules") {
"-plugin"
} else {
"-add-plugin"
},
plugin_name,
"-plugin-arg-" ^ plugin_name,
"-",

Loading…
Cancel
Save