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

Remove wrong "Based on " links #5851

Merged
merged 5 commits into from Apr 12, 2018
Merged

Remove wrong "Based on " links #5851

merged 5 commits into from Apr 12, 2018

Conversation

wooster0
Copy link
Contributor

@wooster0
Copy link
Contributor Author

wooster0 commented Mar 21, 2018

And btw:
while looking over the file I noticed this in line 31:

 if osx? || windows?

Shouldn't this be better changed to something like this

{% if flag?(:osx) || flag?(:win32) %}

?

@@ -1,6 +1,6 @@
require "../abi"

# Based on https://github.com/rust-lang/rust/blob/master/src/librustc_trans/trans/cabi_x86.rs
# Based on https://github.com/rust-lang/rust/blob/master/src/librustc_trans/cabi_x86.rs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also I think you shouldn't use master, but a specific commit hash

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed

@ysbaddaden
Copy link
Contributor

No, they musn't be changed, otherwise that would break cross compilation.

Links are broken because they refer to an optional older version of rust, I'm not sure we should link to current filed because it change a lot. Maybe dig to link to a tag or commit instead.

@RX14
Copy link
Contributor

RX14 commented Mar 22, 2018

Yeah, I'd probably just delete the line...

@wooster0 wooster0 changed the title Fix wrong link in x86.cr Fix wrong "Based on " links Apr 6, 2018
@wooster0 wooster0 changed the title Fix wrong "Based on " links Remove wrong "Based on " links Apr 6, 2018
@sdogruyol sdogruyol merged commit 2e1fee6 into crystal-lang:master Apr 12, 2018
@sdogruyol sdogruyol added this to the Next milestone Apr 12, 2018
@oprypin
Copy link
Member

oprypin commented May 13, 2020

How is this "wrong"? Just find the file at that point in time and link it. https://github.com/rust-lang/rust/blob/29ac04402d53d358a1f6200bea45a301ff05b2d1/src/librustc_trans/trans/cabi_x86_64.rs

Or the current one. https://github.com/rust-lang/rust/blob/50d2c3abd59af8cbed7e001b5b4e2f6a9a011112/src/librustc_target/abi/call/x86_64.rs

oprypin added a commit to oprypin/crystal that referenced this pull request May 30, 2020
oprypin added a commit to oprypin/crystal that referenced this pull request May 30, 2020
bcardiff pushed a commit that referenced this pull request Jun 3, 2020
* Split general ABI specs from x86_64-specific ones, run on every platform

To confirm that the newly added file only moves things:

    $ git diff -w HEAD~:spec/compiler/codegen/c_abi/c_abi_x86_64_spec.cr spec/compiler/codegen/c_abi/c_abi_spec.cr

* Implement basics of Win64 lib ABI

Also un-does #5851
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.

None yet

6 participants