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

unit test build error for mac #253

Closed
zhang-arvin opened this issue Aug 10, 2022 · 3 comments
Closed

unit test build error for mac #253

zhang-arvin opened this issue Aug 10, 2022 · 3 comments
Assignees
Labels
app:pisa-proxy Pisa-Proxy related changes type:bug Misbehavior
Milestone

Comments

@zhang-arvin
Copy link
Contributor

zhang-arvin commented Aug 10, 2022

Bug Report

error: This macro cannot be used on the current target.
You can prevent it from being used in other architectures by
guarding it behind a cfg(any(target_arch = "x86", target_arch = "x86_64")).
--> parser/mysql/src/lex.rs:675:16
|
675 | if is_x86_feature_detected!("sse2") {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro is_x86_feature_detected (in Nightly builds, run with -Z macro-backtrace for more info)

What version of Pisanix are you using?

What operating system and CPU are you using?

image

Steps to reproduce

What did you expect?

What did happened?

@xuanyuan300
Copy link
Contributor

Thanks feeback, I will check it.

@xuanyuan300 xuanyuan300 self-assigned this Aug 11, 2022
@xuanyuan300 xuanyuan300 added type:bug Misbehavior app:pisa-proxy Pisa-Proxy related changes labels Aug 11, 2022
@xuanyuan300 xuanyuan300 added this to the v0.3.0 milestone Aug 11, 2022
@mlycore
Copy link
Member

mlycore commented Aug 13, 2022

It seems like cfg!(any(target_arch = "x86", target_arch = "x86_64")) didn't exclude the target arch, I updated it with a general macro #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] and compiled successfully.

@mlycore
Copy link
Member

mlycore commented Aug 17, 2022

@zhang-arvin Is this issue still reproducible ? This issue will be closed if it is fixed.

@mlycore mlycore closed this as completed Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app:pisa-proxy Pisa-Proxy related changes type:bug Misbehavior
Projects
None yet
Development

No branches or pull requests

3 participants