mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[android] Fix some tests and a doc flag
Use off_t for a recently failing stdlib test, remove Python hacks for some tests that now work without them, and correct build flag in the docs.
This commit is contained in:
@@ -410,18 +410,9 @@ def main():
|
||||
# Copy a file containing SDK build version into the prebuilt module dir,
|
||||
# so we can keep track of the SDK version we built from.
|
||||
copySystemVersionFile(args.sdk, args.output_dir)
|
||||
if 'ANDROID_DATA' not in os.environ:
|
||||
shared_output_lock = multiprocessing.Lock()
|
||||
pool = multiprocessing.Pool(args.jobs, set_up_child,
|
||||
(args, shared_output_lock))
|
||||
else:
|
||||
# Android doesn't support Python's multiprocessing as it doesn't have
|
||||
# sem_open, so switch to a ThreadPool instead.
|
||||
import threading
|
||||
shared_output_lock = threading.Lock()
|
||||
from multiprocessing.pool import ThreadPool
|
||||
pool = ThreadPool(args.jobs, set_up_child,
|
||||
(args, shared_output_lock))
|
||||
shared_output_lock = multiprocessing.Lock()
|
||||
pool = multiprocessing.Pool(args.jobs, set_up_child,
|
||||
(args, shared_output_lock))
|
||||
|
||||
interface_framework_dirs = (args.interface_framework_dirs or
|
||||
DEFAULT_FRAMEWORK_INTERFACE_SEARCH_PATHS)
|
||||
|
||||
Reference in New Issue
Block a user