Skip to content
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

Enable linker optimizations when needed on windows #14418

Closed
wants to merge 8 commits into from

Conversation

ryuukk
Copy link
Contributor

@ryuukk ryuukk commented Sep 5, 2022

@dlang-bot
Copy link
Contributor

Thanks for your pull request and interest in making D better, @ryuukk! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please verify that your PR follows this checklist:

  • My PR is fully covered with tests (you can see the coverage diff by visiting the details link of the codecov check)
  • My PR is as minimal as possible (smaller, focused PRs are easier to review than big ones)
  • I have provided a detailed rationale explaining my changes
  • New or modified functions have Ddoc comments (with Params: and Returns:)

Please see CONTRIBUTING.md for more information.


If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment.

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#14418"

@ryuukk
Copy link
Contributor Author

ryuukk commented Sep 5, 2022

I don't know if that PR is valid, if it is not, then please make appropriate changes, i'm not willing to dive deeper into DMD code base, i don't have the time

compiler/src/dmd/globals.d Outdated Show resolved Hide resolved
compiler/src/dmd/link.d Outdated Show resolved Hide resolved
ryuukk and others added 3 commits September 6, 2022 00:26
Co-authored-by: Max Haughton <maxhaton@gmail.com>
@ryuukk
Copy link
Contributor Author

ryuukk commented Sep 6, 2022

As per review, i removed the dead code, even though i believe it was needed, but i lack skills so that's a story for an other PR

@ryuukk ryuukk requested a review from ibuclaw September 6, 2022 20:37
@maxhaton
Copy link
Member

maxhaton commented Sep 6, 2022

I'll show you how in a few hours

@RazvanN7
Copy link
Contributor

RazvanN7 commented Sep 8, 2022

This seems to fail 2 tests on Windows. The failures are linker errors.

@RazvanN7
Copy link
Contributor

RazvanN7 commented Nov 1, 2022

@ryuukk any progress on this?

@ryuukk
Copy link
Contributor Author

ryuukk commented Nov 2, 2022

I can't run the test myself since the instruction on the wiki doesn't work, it's outdated

https://wiki.dlang.org/Building_under_Windows#Using_DigitalMars_make_for_running_the_test_suite

If one could update the instructions, that would be nice (make related, wich one exactly to get, and from where)

I tried this: https://sourceforge.net/projects/gnuwin32/ but it doesn't work

make.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory

@RazvanN7
Copy link
Contributor

RazvanN7 commented Nov 9, 2022

Indeed the instructions are outdated. However, both for building the compiler and running the tests we now have d scripts.

I don't have a windows machine, but I expect that if you run the run.d script from compiler/test directory that should run the tests. You can pass a specific directory to the program or a specific test:

run.exe fail_compilation              -> will run all fail compilation tests
run.exe fail_compilation/test123456.d -> will run that specific test

@ryuukk
Copy link
Contributor Author

ryuukk commented Aug 31, 2024

It's time for me to quit

@ryuukk ryuukk closed this Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants