Skip to content

Commit fb31473

Browse files
authored
---
yaml --- r: 338941 b: refs/heads/rxwei-patch-1 c: 73b20f3 h: refs/heads/master i: 338939: 709d0f9
1 parent 6cd5dc4 commit fb31473

File tree

3 files changed

+15
-23
lines changed

3 files changed

+15
-23
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-08-18-a: b10b1fce14385faa6d44f6b933e95
10151015
refs/heads/rdar-43033749-fix-batch-mode-no-diags-swift-5.0-branch: a14e64eaad30de89f0f5f0b2a782eed7ecdcb255
10161016
refs/heads/revert-19006-error-bridging-integer-type: 8a9065a3696535305ea53fe9b71f91cbe6702019
10171017
refs/heads/revert-19050-revert-19006-error-bridging-integer-type: ecf752d54b05dd0a20f510f0bfa54a3fec3bcaca
1018-
refs/heads/rxwei-patch-1: bb717d4ab688714d4e801f96c172e18ec08d404c
1018+
refs/heads/rxwei-patch-1: 73b20f32963cb453bbf3784f75d61473817c0922
10191019
refs/heads/shahmishal-patch-1: e58ec0f7488258d42bef51bc3e6d7b3dc74d7b2a
10201020
refs/heads/typelist-existential: 4046359efd541fb5c72d69a92eefc0a784df8f5e
10211021
refs/tags/swift-4.2-DEVELOPMENT-SNAPSHOT-2018-08-20-a: 4319ba09e4fb8650ee86061075c74a016b6baab9

branches/rxwei-patch-1/utils/build-presets.ini

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2023,7 +2023,6 @@ darwin-toolchain-application-cert=lldb_codesign
20232023
# Instead, options are copied here individually.
20242024
[preset: tensorflow_osx_base]
20252025
mixin-preset=mixin_lightweight_assertions
2026-
legacy-impl
20272026

20282027
### From: mixin_osx_package_base
20292028
lldb
@@ -2119,21 +2118,13 @@ darwin-toolchain-installer-package=%(darwin_toolchain_installer_package)s
21192118

21202119
[preset: tensorflow_linux]
21212120
mixin-preset=buildbot_linux
2122-
legacy-impl
2123-
indexstore-db=0
2124-
sourcekit-lsp=0
2125-
toolchain-benchmarks=0
21262121
enable-tensorflow
21272122
install-tensorflow
21282123
# The swift-package-tests fail when run with python3.
21292124
test-installable-package=
21302125

21312126
[preset: tensorflow_linux,no_test]
21322127
mixin-preset=buildbot_linux,no_test
2133-
legacy-impl
2134-
indexstore-db=0
2135-
sourcekit-lsp=0
2136-
toolchain-benchmarks=0
21372128
enable-tensorflow
21382129
install-tensorflow
21392130
# The swift-package-tests fail when run with python3.
@@ -2185,7 +2176,6 @@ mixin-preset=mixin_lightweight_assertions
21852176
enable-tensorflow
21862177
release
21872178
test
2188-
legacy-impl
21892179
test-optimized
21902180
validation-test
21912181

branches/rxwei-patch-1/utils/build-script-impl

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2551,6 +2551,20 @@ for host in "${ALL_HOSTS[@]}"; do
25512551

25522552
if [[ "${ENABLE_TENSORFLOW}" ]] ; then
25532553
# Verify TensorFlow include/library directories.
2554+
if [[ ! "${TENSORFLOW_HOST_INCLUDE_DIR}" ]] ; then
2555+
TENSORFLOW_HOST_INCLUDE_DIR="$TENSORFLOW_SOURCE_DIR"
2556+
fi
2557+
if [[ ! "${TENSORFLOW_HOST_LIB_DIR}" ]] ; then
2558+
TENSORFLOW_HOST_LIB_DIR="$TENSORFLOW_SOURCE_DIR/bazel-bin/tensorflow"
2559+
fi
2560+
2561+
if [[ ! "${TENSORFLOW_TARGET_LIB_DIR}" ]] ; then
2562+
TENSORFLOW_TARGET_LIB_DIR="${TENSORFLOW_HOST_LIB_DIR}"
2563+
fi
2564+
if [[ ! "${TENSORFLOW_TARGET_INCLUDE_DIR}" ]] ; then
2565+
TENSORFLOW_TARGET_INCLUDE_DIR="${TENSORFLOW_HOST_INCLUDE_DIR}"
2566+
fi
2567+
25542568
verify_tensorflow_directories
25552569

25562570
# Copy TensorFlow libraries to correct destination.
@@ -2569,12 +2583,6 @@ for host in "${ALL_HOSTS[@]}"; do
25692583
find "${TENSORFLOW_HOST_LIB_DIR}" \( -regex "${lib}" -o -regex "${dylib}" \) -exec cp -p {} "${TF_LIB_DIR}" \;
25702584
done
25712585

2572-
if [[ ! "${TENSORFLOW_TARGET_LIB_DIR}" ]] ; then
2573-
TENSORFLOW_TARGET_LIB_DIR="${TENSORFLOW_HOST_LIB_DIR}"
2574-
fi
2575-
if [[ ! "${TENSORFLOW_TARGET_INCLUDE_DIR}" ]] ; then
2576-
TENSORFLOW_TARGET_INCLUDE_DIR="${TENSORFLOW_HOST_INCLUDE_DIR}"
2577-
fi
25782586
cmake_options=(
25792587
"${cmake_options[@]}"
25802588
-DSWIFT_ENABLE_TENSORFLOW:BOOL=TRUE
@@ -3028,12 +3036,6 @@ for host in "${ALL_HOSTS[@]}"; do
30283036
with_pushd "${source_dir}" \
30293037
call bazel build -c opt "${TENSORFLOW_BAZEL_OPTIONS[@]}" --define framework_shared_object=false //tensorflow:libtensorflow.so //tensorflow:libtensorflow_framework.so
30303038

3031-
# Set TensorFlow include/lib directories.
3032-
TENSORFLOW_HOST_INCLUDE_DIR="${source_dir}"
3033-
TENSORFLOW_HOST_LIB_DIR="${source_dir}/bazel-bin/tensorflow"
3034-
TENSORFLOW_TARGET_INCLUDE_DIR="${source_dir}"
3035-
TENSORFLOW_TARGET_LIB_DIR="${source_dir}/bazel-bin/tensorflow"
3036-
30373039
# TensorFlow builds itself and doesn't use CMake.
30383040
continue
30393041
;;

0 commit comments

Comments
 (0)