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

slangc -dump-module failing for some slang-modules #6664

Open
cheneym2 opened this issue Mar 21, 2025 · 0 comments
Open

slangc -dump-module failing for some slang-modules #6664

cheneym2 opened this issue Mar 21, 2025 · 0 comments
Assignees
Labels
kind:bug something doesn't work like it should

Comments

@cheneym2
Copy link
Collaborator

#6638 introduced a "-dump-module" feature to slangc which takes a slang-module filename as input and shows the Slang IR disassembly.

The feature shows an error for some slang-modules.

Taking for example, just the slang-modules that are left over on disk after running slang-test,

These ones work ✔ :

./tests/modules/environment.slang-module
./tests/diagnostics/illegal-func-decl-module.slang-module
./tests/serialization/obfuscated-loc-module.slang-module
./tests/ir/dump-module.slang-module
./tests/library/export-library-generics-test.slang-module
./tests/library/module-library-pointer-param.slang-module
./tests/library/precompiled-module-library-resource-spv.slang-module
./tests/library/export-library-generics.slang-module

But these ones don't ❌ :

./tests/serialization/obfuscated-serialized-module.slang-module
./tests/serialization/serialized-module.slang-module

Those two fail with an error like this:

11:06 $ ./build/Release/bin/slangc -dump-module tests/serialization/obfuscated-serialized-module.slang-module 
path(1): error 1: cannot open file 'obfuscated_serialized_module_shared.slang'.
RIFF
@cheneym2 cheneym2 added the kind:bug something doesn't work like it should label Mar 21, 2025
@cheneym2 cheneym2 added this to the Q2 2025 (Spring) milestone Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug something doesn't work like it should
Projects
None yet
Development

No branches or pull requests

2 participants