ArtemGr / gstuff.rs

Small macro and trinkets that make my life easier.
MIT License
4 stars 5 forks source link

Do not compile rdtsc on android or ios. #2

Closed artemii235 closed 5 years ago

artemii235 commented 5 years ago

I got

error: couldn't allocate output register for constraint '{eax}'
   --> /cargo/registry/src/github.com-1ecc6299db9ec823/gstuff-0.5.10/gstuff.rs:477:5
    |
477 |     asm!("rdtsc" : "={eax}" (low), "={edx}" (high) ::: "volatile");
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

while trying to build for Android. I suspect there might be issue with iOS too.