Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUse NEON build flag on ARM and AArch64 #10916
Conversation
highfive
commented
Apr 29, 2016
|
Heads up! This PR modifies the following files:
|
| @@ -202,9 +202,13 @@ def build(self, target=None, release=False, dev=False, jobs=None, | |||
|
|
|||
| build_start = time() | |||
| env = self.build_env() | |||
|
|
|||
| # Ensure Rust uses hard floats and SIMD on ARM devices | |||
| if len(targets): | |||
This comment has been minimized.
This comment has been minimized.
| @@ -202,9 +202,13 @@ def build(self, target=None, release=False, dev=False, jobs=None, | |||
|
|
|||
| build_start = time() | |||
| env = self.build_env() | |||
|
|
|||
| # Ensure Rust uses hard floats and SIMD on ARM devices | |||
| if targets: | |||
This comment has been minimized.
This comment has been minimized.
aneeshusa
Apr 29, 2016
Member
Personally, I prefer the more explicit check of if len(targets) > 0 here.
|
Ah, right, thanks :) |
|
Only looking at |
|
About the |
|
It seems the underlying |
|
Hrm, I thought that |
|
I don't see any places where the host target is added to the |
|
yeah, that all happens here: |
|
Convo on IRC: http://logs.glob.uno/?c=mozilla%23servo#c418555 Let's make the |
|
Ok! And what should happen if both a target and |
|
@mmatyas Let's make them mutually exclusive, like |
|
Also, bonus points if you make a separate commit for making |
|
Ok, here's an update. My Python might be a little rusty, so feel free to point on any mistakes. Just two things you might notice: It you think this looks good, I'll make the separate commits ( |
| @@ -411,7 +411,7 @@ def android_support_dir(self): | |||
| def android_build_dir(self, dev): | |||
| return path.join(self.get_target_dir(), "arm-linux-androideabi", "debug" if dev else "release") | |||
|
|
|||
| def ensure_bootstrapped(self, targets=[]): | |||
| def ensure_bootstrapped(self, target=""): | |||
This comment has been minimized.
This comment has been minimized.
aneeshusa
Apr 29, 2016
Member
The default here should be target=None, not target="". We only need to do the target-related things if we are passed a target explicitly.
|
These changes look good aside from the default argument there. I didn't realize you could fixup fixup commits - I'm surprised the last one isn't fixup! fixup! fixup! fixup! |
|
This should actually be squashed... |
|
Rebased and grouped to two commits. (PS. Sorry for the late replies) |
|
Is there a clean, Pythonic way to remove None from a list before passing as a function argument? |
|
filter(lambda i: i, [True, None, 'foo']) |
|
btw, it would be nice if we don't have "fixup!" in a commit message :) |
|
Even better, we can do @wafflespeanut git can automatically combine fixup! commits with |
Use NEON build flag on ARM and AArch64 The NEON flag is already used when building for Android, this patch enables it on other ARM devices too. Note that this patch just adds the build flag to the compilation, for actually enabling the SIMD code in Servo, we'll also need #10900 (but it's not a dependency). <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10916) <!-- Reviewable:end -->
|
|
|
Looks like another network issue. |
|
@bors-servo retry
|
Use NEON build flag on ARM and AArch64 The NEON flag is already used when building for Android, this patch enables it on other ARM devices too. Note that this patch just adds the build flag to the compilation, for actually enabling the SIMD code in Servo, we'll also need #10900 (but it's not a dependency). <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10916) <!-- Reviewable:end -->
|
|
|
@bors-servo: retry
|
Use NEON build flag on ARM and AArch64 The NEON flag is already used when building for Android, this patch enables it on other ARM devices too. Note that this patch just adds the build flag to the compilation, for actually enabling the SIMD code in Servo, we'll also need #10900 (but it's not a dependency). <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10916) <!-- Reviewable:end -->
|
|
highfive
commented
May 5, 2016
|
|
@bors-servo: retry |
|
|
|
|
mmatyas commentedApr 29, 2016
•
edited by larsbergstrom
The NEON flag is already used when building for Android, this patch enables it on other ARM devices too.
Note that this patch just adds the build flag to the compilation, for actually enabling the SIMD code in Servo, we'll also need #10900 (but it's not a dependency).
This change is