Skip to content

Commit 496da9d

Browse files
authored
Merge pull request #40977 from buttaface/droid-test
2 parents beda891 + 26aafe6 commit 496da9d

File tree

4 files changed

+4
-22
lines changed

4 files changed

+4
-22
lines changed

docs/Android.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,5 +161,5 @@ $ utils/build-script \
161161
--android \ # Build for Android.
162162
--android-ndk ~/android-ndk-r23b \ # Path to an Android NDK.
163163
--android-arch armv7 \ # Optionally specify Android architecture, alternately aarch64
164-
--android-ndk-version 21
164+
--android-api-level 21
165165
```

test/lit.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,9 +1438,6 @@ elif (run_os in ['linux-gnu', 'linux-gnueabihf', 'freebsd', 'openbsd', 'windows-
14381438
config.target_shared_library_prefix = 'lib'
14391439
config.target_shared_library_suffix = ".so"
14401440
config.target_sdk_name = "android"
1441-
# Needed by several ParseableInterface/swift_build_sdk_interfaces tests on
1442-
# Android
1443-
config.environment['ANDROID_DATA'] = os.environ['ANDROID_DATA']
14441441
config.target_cc_options = "-fPIE"
14451442
else:
14461443
lit_config.note("Testing Linux " + config.variant_triple)

test/stdlib/POSIX.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -246,13 +246,7 @@ POSIXTests.test("fcntl(CInt, CInt, UnsafeMutableRawPointer): locking and unlocki
246246
// Lock for reading...
247247
var flck = flock()
248248
flck.l_type = Int16(F_RDLCK)
249-
#if os(Android)
250-
// In Android l_len is __kernel_off_t which is not the same size as off_t in
251-
// 64 bits.
252-
flck.l_len = __kernel_off_t(data.utf8.count)
253-
#else
254249
flck.l_len = off_t(data.utf8.count)
255-
#endif
256250
rc = fcntl(fd, F_SETLK, &flck)
257251
expectEqual(0, rc)
258252

utils/swift_build_sdk_interfaces.py

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -410,18 +410,9 @@ def main():
410410
# Copy a file containing SDK build version into the prebuilt module dir,
411411
# so we can keep track of the SDK version we built from.
412412
copySystemVersionFile(args.sdk, args.output_dir)
413-
if 'ANDROID_DATA' not in os.environ:
414-
shared_output_lock = multiprocessing.Lock()
415-
pool = multiprocessing.Pool(args.jobs, set_up_child,
416-
(args, shared_output_lock))
417-
else:
418-
# Android doesn't support Python's multiprocessing as it doesn't have
419-
# sem_open, so switch to a ThreadPool instead.
420-
import threading
421-
shared_output_lock = threading.Lock()
422-
from multiprocessing.pool import ThreadPool
423-
pool = ThreadPool(args.jobs, set_up_child,
424-
(args, shared_output_lock))
413+
shared_output_lock = multiprocessing.Lock()
414+
pool = multiprocessing.Pool(args.jobs, set_up_child,
415+
(args, shared_output_lock))
425416

426417
interface_framework_dirs = (args.interface_framework_dirs or
427418
DEFAULT_FRAMEWORK_INTERFACE_SEARCH_PATHS)

0 commit comments

Comments
 (0)