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

[Question] how to manually get essential host info instead of -C target-cpu=native #146

Closed
wbprime opened this issue Dec 24, 2024 · 1 comment

Comments

@wbprime
Copy link

wbprime commented Dec 24, 2024

Is your feature request related to a problem? Please describe.

It is adviced to add -C target-cpu=native flags when build crates using sonic-rs.

The idea behind was that the running/production host is the same with the building/dev host.

When the production host is not under control (say controlled by a dedicated ops team), how to get essential info to build crates.

  1. the production host can not access the public net
  2. hard to request ops team run build-time command (cargo ...)

Does there exist some tips to query essential info to achive the same effect as -C target-cpu=native does ?

Describe the solution you'd like

Provide some commands or instructions to collect essential info to achive the same effect as -C target-cpu=native does.

Describe alternatives you've considered

Provide some tricks to perpsuade ops team members to help collect host native info.

Additional context

None.

@liuq19
Copy link
Collaborator

liuq19 commented Dec 27, 2024

We will support runtime detection, and will not need to add -C target-cpu=native.

related issue #14

@liuq19 liuq19 closed this as completed Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants