ZLUDA/zluda_rtc/README

3 lines
330 B
Plaintext
Raw Normal View History

2024-02-20 14:28:58 +01:00
bindgen include/nvrtc.h -o src/nvrtc.rs --allowlist-function="^nvrtc.*" --default-enum-style=newtype --no-layout-tests --no-derive-debug -- -Iinclude
sed -i -e 's/extern "C" {//g' -e 's/-> nvrtcResult;/-> nvrtcResult { crate::unsupported()/g' -e 's/pub fn /#[no_mangle] pub extern "system" fn /g' src/nvrtc.rs
rustfmt src/nvrtc.rs