[clang capture] Make sure to always run clang from facebook-clang-plugins

Summary: This is assumed everywhere, and so set it in `ClangWrapper` instead of `InferClang`

Reviewed By: jberdine

Differential Revision: D4095766

fbshipit-source-id: f77625e
master
Andrzej Kotulski 8 years ago committed by Facebook Github Bot
parent 35d24c6504
commit e9ccdb7d50

@ -112,6 +112,8 @@ let execute_clang_command (clang_cmd: ClangCommand.t) => {
};
let exe args xx_suffix => {
/* make sure args.(0) points to clang in facebook-clang-plugins */
args.(0) = CFrontend_config.clang_bin xx_suffix;
let commands = normalize args;
/* xcodebuild projects may require the object files to be generated by the Apple compiler, eg to
generate precompiled headers compatible with Apple's clang. */

@ -11,7 +11,5 @@ open! Utils;
let () = {
let xx_suffix = string_is_suffix "++" Sys.argv.(0) ? "++" : "";
let args = Array.copy Sys.argv;
/* make sure we don't call ourselves recursively */
args.(0) = CFrontend_config.clang_bin xx_suffix;
ClangWrapper.exe args xx_suffix
};

Loading…
Cancel
Save