-
Notifications
You must be signed in to change notification settings - Fork 68
[native_toolchain_c] Defines with quotation marks (") break build process on Windows #2095
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
Comments
Hi @zeyus! Thanks for the report! This should be an issue in We're open to contributions, would you take a stab at fixing the package? |
@dcharkes PR submitted, it's a bit weirder than I hoped, but it works |
Thanks for the great documentation on the PR! TIL about I wonder if it would be cleaner to (1) add forceIncludes param to the For (1), the For (2), we should probably point the new WDYT @zeyus? |
@dcharkes Yeah that makes sense, if it's an option that can be exposed across compilers (I didn't know about the clang version), then it also prevents potential confusion as to what's happening under the hood (even if it shouldn't have too much of an impact). I see below the option for (1) there's also I think this is better way. I didn't consider initially because I was trying to touch as little of the code as possible, but I can update the PR later using this approach. I should be able to run most/all of the test variants too. The whole reason I even came across this was because I've made a dart package for liblsl / Lab streaming layer (and even though I'm just really targeting iOS for my experiment, I wanted it to be useful for any targets), and the liblsl source has one weird line where they include the version string assigned to a On that, I have been reading a bit about WASM and its status in dart for web targets, and it seems a shame if I couldn't get liblsl working for web as well, but at least as I understand it, probably isn't and won't be possible without essentially re-writing or reimplementing it specifically for browsers? I think most of the core functionality would be supported but that's beyond my current level. |
Yes lets do the same behavior across compilers. 👍
Haha, the world out there is full of quirky details. 😄 RE wasm: In some future we'd like to have build hooks that can do dylibs and WASM. And possibly have a |
@dcharkes PR updated with new arg |
Using
CBuilder.library
, on Windows, the build crashes with:This happens because the escaping / string quoting for defines, PATH, other environment variables fails when a define has a double quotation mark in it (it's possible this will apply to flags as well)
The text was updated successfully, but these errors were encountered: