Skip to content
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

Further portability fixes (hopefully the last) #18

Merged
merged 6 commits into from
Jan 3, 2025

Conversation

alastairreid
Copy link

  • Don't build demo if as is emulated by clang (because we need full GNU as macro support)
  • Cleanup tests that tried to redirect stderr - this is hard to do portably
  • Change ASLi and asl2c and runtime to send error output to stdout, not stderr

Printing error messages to stderr makes testing more complex
because it is hard to portably redirect stderr and stdout
is not synchronized with stderr.
So it is much easier just to use stdout.

Note that we expect most users to override the definitions
of ASL_{runtime_error,assert,error} and they may use
stderr in their own versions if they choose.
We resolved the portability issues by writing all error
output to stdout - which avoids the need to try to redirect
stderr to a pipe.
@alastairreid alastairreid force-pushed the areid-fix-osx-more branch 3 times, most recently from 3717b86 to c5b6ab8 Compare January 3, 2025 11:52
@alastairreid alastairreid merged commit 929cf1d into IntelLabs:master Jan 3, 2025
1 check passed
@alastairreid alastairreid deleted the areid-fix-osx-more branch January 3, 2025 15:52
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.

1 participant