From 6152ca46c8efda578e0e7959b31288180012a581 Mon Sep 17 00:00:00 2001 From: Michael Lee Date: Tue, 18 Oct 2016 08:04:57 -0700 Subject: [PATCH] Tell the java wrapper to use the fbcode java Summary: The flag to use in fbandroid is `-Duses_native_libraries` passed in via `vm_args` In `fbandroid/third-party/build-tools/java/java.sh` looks for this flag to override the default java with the fbcode runtime java. Reviewed By: ryandm Differential Revision: D4024857 fbshipit-source-id: 0ace0ee94fea32376a24004582556fa1d7d2e222 --- java/BUCK | 3 +++ 1 file changed, 3 insertions(+) diff --git a/java/BUCK b/java/BUCK index 67c1217e..7baff846 100644 --- a/java/BUCK +++ b/java/BUCK @@ -51,6 +51,9 @@ java_test( ':java', JUNIT_TARGET, ], + vm_args = [ + '-Duses_native_libraries', + ], use_cxx_libraries = True, cxx_library_whitelist = CXX_LIBRARY_WHITELIST, )