-
Notifications
You must be signed in to change notification settings - Fork 1.7k
dart2native: strip option #38731
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
Comments
Hm, actually, it looks like stripping destroys the program:
|
I had a similar issue even without stripping, maybe it's related: $ dart2native main.dart -o fireutil
Generated: /home/cachapa/fireutil/bin/fireutil
$ ./fireutil
Utility to manage Firestore databases.
[...]
$ sudo mv fireutil /usr/local/bin
$ fireutil
Usage: dart [<vm-flags>] <dart-script-file> [<script-arguments>]
[...] |
To be fair, it fails with Go too:
but it doesnt matter as Go has a strip option:
and it does work with D:
and works with Nim:
|
@cup Can you confirm if UPX works with dart2native? |
@0xbkt this issue is about strip, not UPX |
|
Currently running Is there anything we can do to at least make |
@jamesderlin not with the current approach - the generated binary is essentially AOT runtime and an AOT snapshot simply concatenated together. |
Now that dart2native can create a single file, it would be nice if a way was
available for Dart to strip the created files. Currently I am using something
like this:
I noticed that
dartaotruntime
itself has already been stripped, as its thesame size as a "hello world" example after you strip it yourself.
The text was updated successfully, but these errors were encountered: