Skip to content

Instantly share code, notes, and snippets.

View jvillard's full-sized avatar
🥗
eating salad

Jules Villard jvillard

🥗
eating salad
View GitHub Profile
#=== ERROR while installing camlp4.4.04+1 =====================================#
# opam-version 1.2.2
# os linux
# command make all
# path /root/.opam/4.04.0/build/camlp4.4.04+1
# compiler 4.04.0
# exit-code 2
# env-file /root/.opam/4.04.0/build/camlp4.4.04+1/camlp4-6767-bbf621.env
# stdout-file /root/.opam/4.04.0/build/camlp4.4.04+1/camlp4-6767-bbf621.out
# stderr-file /root/.opam/4.04.0/build/camlp4.4.04+1/camlp4-6767-bbf621.err
#!/bin/bash
# Copyright (c) 2016 - present Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
# Given the more-or-less raw arguments passed to clang as arguments,
diff --git a/infer/lib/clang_wrappers/hijack_and_normalize_clang_command.sh b/infer/lib/clang_wrappers/hijack_and_normalize_clang_command.sh
index c94ebc5..9c3eaaf 100755
--- a/infer/lib/clang_wrappers/hijack_and_normalize_clang_command.sh
+++ b/infer/lib/clang_wrappers/hijack_and_normalize_clang_command.sh
@@ -26,8 +26,11 @@ APPLE_CLANG="$FCP_APPLE_CLANG"
# Main
if [ "${0%++}" != "$0" ]; then XX="++"; fi
+# Skip -cc1as commands
+if [ "$1" = "-cc1as" ]; then
diff --git a/infer/lib/xcode_wrappers/clang b/infer/lib/xcode_wrappers/clang
index 1e9f27c..e5212ab 100755
--- a/infer/lib/xcode_wrappers/clang
+++ b/infer/lib/xcode_wrappers/clang
@@ -17,5 +17,9 @@ if [ -z "$INFER_RESULTS_DIR" ]; then
exit $?
fi
+if [ "$XX" == "++" ]; then
+ system_headers_dir=$(echo '' | clang -v -c -xc++ - 2>&1 | grep "$(xcode-select -p | sed -e 's/\(.\)/[\1]/g').*v1" -m 1 -o)
@jvillard
jvillard / waf-support.patch
Created March 23, 2016 12:54
tentative support for waf
diff --git a/infer/lib/python/infer b/infer/lib/python/infer
index 367b072..530c27b 100755
--- a/infer/lib/python/infer
+++ b/infer/lib/python/infer
@@ -15,7 +15,7 @@ import sys
import inferlib
from inferlib import analyze, config, utils
-
+from inferlib.capture import make