-
Notifications
You must be signed in to change notification settings - Fork 122
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
Handle quotes and spaces in the command line #1401
Comments
Alright I have no idea how to do this. I want to define a string literal with CPP like |
We also do a ton of postprocessing to whatever the compiler command field contains, so keep that in mind. sorry I don't have more useful input at the moment though |
That's all fine, but ultimately the compiler is invoked via bash, whose word-splitting does not respect quotes. So the only way I can see to implement this is if the commands in |
Describe the bug
Can't pass command line arguments containing quotes or spaces
To Reproduce
Steps to reproduce the behavior:
Compiler error: mips-linux-gcc: cannot specify -o with -c or -S and multiple compilations
Expected behavior
Code compiles
Scratches
https://decomp.me/scratch/OxjGT
Additional context
I'm not sure if this is a bug or feature request, but I can't find a way to define a string literal for the C preprocessor (with or without spaces). This is used in OoT so currently you have to manually remove the defines from the command line in all new scratches.
The text was updated successfully, but these errors were encountered: