From 8ab1d8191749751155ca476e9256556611c6b4cc Mon Sep 17 00:00:00 2001 From: Taras Tsugrii Date: Sun, 26 Nov 2017 20:44:38 -0800 Subject: [PATCH] Do not use isdir in build files. Summary: This leads to slow, non-reproducible builds. Reviewed By: adamjernst Differential Revision: D6411750 fbshipit-source-id: 566424fa813edd20813da15101e6640d6c8fff19 --- csharp/BUCK | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/csharp/BUCK b/csharp/BUCK index 8e8c5121..90b90918 100644 --- a/csharp/BUCK +++ b/csharp/BUCK @@ -5,6 +5,8 @@ # 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. +load("@xplat//configurations/buck:default_platform_defs", "is_apple_platform") + include_defs("//YOGA_DEFS") COMPILER_FLAGS = BASE_COMPILER_FLAGS + ["-std=c++11"] @@ -34,7 +36,7 @@ cxx_library( deps = [yoga_dep(":yoga")], ) -if isdir('/Applications/Xcode.app'): +if is_apple_platform(): yoganet_ios_srcs = [] for arch in [ 'iphonesimulator-x86_64', 'iphonesimulator-i386', 'iphoneos-arm64', 'iphoneos-armv7'