Matheus C. França

Results 305 comments of Matheus C. França

@vanillajonathan , please test https://github.com/kassane/cbindgen/tree/dlang (WiP) - ~~no D/C++ generics support yet.~~

**Note:** D wiki is deprecated! #### See docs **C++** - https://dlang.org/spec/cpp_interface.html - https://dlang.org/articles/template-comparison.html - https://dlang.org/articles/cpptod.html **C** - https://dlang.org/spec/interfaceToC.html - https://dlang.org/articles/ctod.html

`-dwarf-version=5` get: ```console warning: unsupported DWARF version (5) emcc: error: '/home/kassane/.cache/zig/p/1220d2b37748757d43de92f0ef723b6a00c3cae4b6a9c582b607421704498a5cfd2b/upstream/bin/wasm-emscripten-finalize -g --dyncalls-i64 --pass-arg=legalize-js-interface-exported-helpers --dwarf /home/kassane/sokol-d/.zig-cache/o/1e52826a2383e678930d2511f19510f4/mrt.wasm -o /home/kassane/sokol-d/.zig-cache/o/1e52826a2383e678930d2511f19510f4/mrt.wasm --detect-features' failed (received SIGABRT (-6)) ``` `-dwarf-version=4` get: ```console warning: unknown subopcode...

> So looks like emcc requires v5 then. I doubt any of this is LDC-related, all Emscripten toolchain specifics. emcc + zig works. Some toolchains have succeeded in doing this...

> `emcc` (which version?) doesn't support DWARF 5 >> **Emscripten version:** 3.1.73 (LLVM 20)

> Hmm, testing `-gc` instead of `-g` Same error, here!! But, in my test replaced `-g` from `emcc` to `-gsource-map` to extracting dwarf map, works. `EMCC_DEBUG=1` ```console shared:DEBUG: successfully executed...

> But, in my test replaced `-g` from `emcc` to `-gsource-map` to extracting dwarf map, works. add: `emcc -gsource-map -gdwarf-5` + `ldc2 -gc -dwarf-version=5` ```console warning: unsupported DWARF version (5)...

> There's also `--write-experimental-debuginfo` which is llvm-specific. Sorry I'm late. I also tested this flag (with/out `--gc`) and the result was no change. > But, in my test replaced `-g`...

@kinke, Based on the file shown below, CPU parameters are not auto-detected. Alright? https://github.com/ldc-developers/ldc/blob/20d22b1e36242423e073b246a621c46217a92277/driver/targetmachine.cpp#L525-L540 I'm no LLVM expert! However, it's reasonable to know why zig (in bootstrap) run `llvm-tblgen` to...

> > During building tests, it's common to find warnings without errors: > > '-half-precision' is not a recognized feature for this target (ignoring feature) > > If that is...