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
This commit is contained in:
committed by
Facebook Github Bot
parent
942543f6a5
commit
8ab1d81917
@@ -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'
|
||||
|
Reference in New Issue
Block a user