fusion-engineering / inline-python

Inline Python code directly in your Rust code
https://docs.rs/inline-python
BSD 2-Clause "Simplified" License
1.15k stars 37 forks source link

cannot find macro `llvm_asm` #20

Closed hyousefGopher closed 4 years ago

hyousefGopher commented 4 years ago

Hi, In my Win 10 machine, I got the below error, thanks for your support:

error: cannot find macro `llvm_asm` in this scope                                       
  --> C:\Users\Yara Yousef\.cargo\registry\src\github.com-1ecc6299db9ec823\parking_lot-0.10.2\src\elision.rs:77:13
   |
77 |             llvm_asm!("xacquire; lock; cmpxchgq $2, $1"
   |             ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> C:\Users\Yara Yousef\.cargo\registry\src\github.com-1ecc6299db9ec823\parking_lot-0.10.2\src\elision.rs:108:13
    |
108 |             llvm_asm!("xrelease; lock; xaddq $2, $1"
    |             ^^^^^^^^

error: aborting due to 2 previous errors

error: could not compile `parking_lot`.
m-ou-se commented 4 years ago

For the latest parking_lot version you'll have to use a newer nightly compiler: rustup update

(See https://github.com/Amanieu/parking_lot/issues/225)