-
Notifications
You must be signed in to change notification settings - Fork 248
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
Feat: Add ability to compile from stdin #1327
Changes from 5 commits
292bcd1
f1152ce
5c32f79
e579c05
f6e1362
72b7e72
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1179,6 +1179,7 @@ class cppfront | |
if ( | ||
!sourcefile.ends_with(".cpp2") | ||
&& !sourcefile.ends_with(".h2") | ||
&& sourcefile != "stdin" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This part is fine, but we need to also update later logic that generates the output filename and currently assumes it ends in one of these and so just truncates the last character (e.g., How is this intended to work -- if you use I think the right answer is probably to default to |
||
) | ||
{ | ||
errors.emplace_back( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!
missing? Otherwise compiling a named file breaks.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops. That was definitely my bad 😅 . Thanks for fixing