Add GHS dotciscxx flag to compile as C++#1761
Add GHS dotciscxx flag to compile as C++#1761Swiftshine wants to merge 1 commit intodecompme:mainfrom
Conversation
|
Before this PR is accepted, I think it's better to consider how other platforms handle it? |
|
Other platforms also expose the language as a drop-down, which just sets a compiler flag ( |
|
Is there a flag to explicitly set C (rather than C++)? such that we can leverage edit looks like edit2 seems like we arent super consistent given we take the language from the compiler to determine file extension, rather than dynamically from flags (unless im missing something) ? |
|
Alternatively, you could use |
With GHS,
ccppcandcxppcboth determine the file type by its extension. Since the files the scratch uses are calledctx.candcode.c, they're treated as C files. The flagdotciscxxis needed to treat them as C++ files instead.