-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
chakra.rb: update ChakraCore to release 1.5 #13947
Conversation
Formula/chakra.rb
Outdated
system "./build.sh", *args | ||
|
||
bin.install "BuildLinux/Release/ch" => "chakra" | ||
system "./build.sh", "--lto-thin", "--static", "--embed-icu", "-j=2", "-y" |
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.
Any objection to -j=#{ENV.make_jobs}
?
@ilovezfs Thanks for the review. Updated the commit. Please let me know if anything else needs touch. |
Formula/chakra.rb
Outdated
system "./build.sh", *args | ||
|
||
bin.install "BuildLinux/Release/ch" => "chakra" | ||
system "./build.sh", "--lto-thin", "--static", "--embed-icu", "-j=#{ENV.make_jobs}", "-y" |
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.
This script will download ICU-LIB from
http://source.icu-project.org/repos/icu/icu/tags/release-57-1
Is the checksum being verified? If not, can we vendor the resource instead in a resource block? Does it not work with our icu4c formula (58.2) and soon to be 59.1 (#12461) yet?
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.
Looks like it's using svn and an insecure http url, so I guess we'll need to use a resource block or the brew formula.
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.
Is the checksum being verified? If not, can we vendor the resource instead in a resource block? Does it not work with our icu4c formula (58.2) and soon to be 59.1 (#12461) yet?
The problem with icu4c formula is, it couldn't find the dylib on CI. however it was working okay on my machine.
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.
updated once again to brew formula. Let's see. If it doesn't work, I will update to no-icu again and next release we may use it from secure url.
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.
@obastemur That's because you don't want => :build
which means the dependency is build-time only. To protect against erroneous => :build
we uninstall them before running the test block!
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.
So, instead of :build
it should has :run
?
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.
You don't want => :run
either. Just
depends_on "icu4c"
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.
Done. Thanks!
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.
No problem. I'll check if it build with v59 locally.
Also; - Enable LTO build - Faster builds with `-j` - Make ICU dependency a requirement. Better experience and compatibility.
It builds fine with icu4c 59.1 too:
So #12461 won't break it. |
@obastemur Thanks for the upgrade. Shipped! Just for your future reference:
I went ahead and adjusted the commit subject for you while pulling :) |
Great! Thanks again |
You're welcome! |
Also;
j2-j