Skip to content

--embind-emit-tsd doc tweak#20933

Open
shrinktofit wants to merge 2 commits intoemscripten-core:mainfrom
shrinktofit:patch-1
Open

--embind-emit-tsd doc tweak#20933
shrinktofit wants to merge 2 commits intoemscripten-core:mainfrom
shrinktofit:patch-1

Conversation

@shrinktofit
Copy link
Contributor

@shrinktofit shrinktofit commented Dec 17, 2023

As I tested, without "=", the .d.ts won't be generated.


Edit:

I found that directly using emcc --embind-emit-tsd <file-path>.d.ts from command line has no problem. Wherase using cmake:

target_link_options(your_target_name PRIVATE "--embind-emit-tsd $<TARGET_FILE_BASE_NAME:your_target_name>.d.ts")

is problematic. So it might be a problem of spaces?

So this PR, at some degrees, is not necessary. Reviewers might feel free to close this.

@shrinktofit shrinktofit changed the title --embind-emit-tsd requires a "=" to be placed before path --embind-emit-tsd doc tweak Dec 17, 2023
@sbc100
Copy link
Collaborator

sbc100 commented Dec 18, 2023

I think maybe the fix here is to make the = optional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants