-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[android] Fix some tests and a doc flag #40977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -246,13 +246,7 @@ POSIXTests.test("fcntl(CInt, CInt, UnsafeMutableRawPointer): locking and unlocki | |
// Lock for reading... | ||
var flck = flock() | ||
flck.l_type = Int16(F_RDLCK) | ||
#if os(Android) | ||
// In Android l_len is __kernel_off_t which is not the same size as off_t in | ||
// 64 bits. | ||
flck.l_len = __kernel_off_t(data.utf8.count) | ||
#else | ||
flck.l_len = off_t(data.utf8.count) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the above comment was written before AArch64 support was added, |
||
#endif | ||
rc = fcntl(fd, F_SETLK, &flck) | ||
expectEqual(0, rc) | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Someone recently ported |
||
|
||
interface_framework_dirs = (args.interface_framework_dirs or | ||
DEFAULT_FRAMEWORK_INTERFACE_SEARCH_PATHS) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no such flag, which was corrected in the build script but missed in this doc.