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

go amd64 variant support #63

Merged
merged 1 commit into from
Feb 6, 2024
Merged

Conversation

crazy-max
Copy link
Collaborator

@crazy-max crazy-max commented Apr 26, 2022

No description provided.

Copy link
Owner

@tonistiigi tonistiigi left a comment

Choose a reason for hiding this comment

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

Commit should say "go amd64 variant support". Latest clang and GCC support it as well.

base/xx-go Outdated Show resolved Hide resolved
base/xx-info Outdated Show resolved Hide resolved
base/xx-go Outdated Show resolved Hide resolved
@crazy-max crazy-max force-pushed the goamd64 branch 3 times, most recently from 80aae26 to 6388dbc Compare January 12, 2024 14:50
@crazy-max crazy-max changed the title amd64 variant support go amd64 variant support Jan 12, 2024
@crazy-max crazy-max force-pushed the goamd64 branch 3 times, most recently from 7677a62 to 188efd0 Compare January 12, 2024 14:57
@crazy-max crazy-max marked this pull request as ready for review January 12, 2024 16:51
src/xx-info Outdated
@@ -147,6 +160,18 @@ if [ -z "$TARGETARCH" ]; then
"x86_64")
TARGETARCH="amd64"
;;
"x86_64-v2")
Copy link
Owner

Choose a reason for hiding this comment

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

How are these values possible?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Didn't know what I was thinking about but was looking at LLVM march handling with -march=x86-64-v[234]: llvm/llvm-project@012dd42#diff-ec770381d76c859f5f572db789175fe44410a72608f58ad5dbb14335ba56eb97R193

I guess we should check cpu features to handle that?

Copy link
Owner

Choose a reason for hiding this comment

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

Don't think this should be implied from current system at all. Building in v4 system does not mean that the default build target should be v4. It should still be v1 for max compatibility.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It should still be v1 for max compatibility.

Good point

Copy link
Owner

@tonistiigi tonistiigi left a comment

Choose a reason for hiding this comment

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

I wonder if we should automatically set llvm/llvm-project@012dd42e027e in cfg file for clang12+ as well if set. This could be a follow-up as well.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@tonistiigi tonistiigi merged commit ac90278 into tonistiigi:master Feb 6, 2024
27 of 28 checks passed
@crazy-max crazy-max deleted the goamd64 branch February 6, 2024 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants