From 0b8a117b5e208880639cdb4cddae112140703492 Mon Sep 17 00:00:00 2001 From: Jeremy Dubreil Date: Thu, 1 Dec 2016 23:23:07 -0800 Subject: [PATCH] [infer][java] Fall back to the system compiler in case of compilation failures Reviewed By: sblackshear Differential Revision: D4218310 fbshipit-source-id: 3bf133a --- infer/lib/python/inferlib/jwlib.py | 33 ++++++++++++++++++------------ 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/infer/lib/python/inferlib/jwlib.py b/infer/lib/python/inferlib/jwlib.py index e00083518..bf163911c 100644 --- a/infer/lib/python/inferlib/jwlib.py +++ b/infer/lib/python/inferlib/jwlib.py @@ -213,19 +213,26 @@ class CompilerCall(object): try: subprocess.check_call(command, stderr=file_out) except subprocess.CalledProcessError: - error_msg = 'ERROR: failure during compilation command.' \ - + '\nYou can run the failing compilation ' \ - + 'command again by copy-pasting the\nlines ' \ - + 'below in your terminal:\n\n"""\n' \ - + 'python <