aboutsummaryrefslogtreecommitdiff
path: root/driver.c
AgeCommit message (Collapse)Author
2022-01-22Port to C99Michael Forney
2021-09-14driver: Pass -nostdinc on to preprocessorMichael Forney
2021-09-06driver: Pass -P through to the pre-processorMichael Forney
Since we no longer pass -P to cpp ourselves, we need to pass it through when it appears on the command-line instead of ignoring it.
2021-04-21Add support for riscv64 targetMichael Forney
QBE support isn't quite there yet, but is progressing smoothly.
2020-12-07Support -pthread compiler flag.Érico Rolim
POSIX requires -lpthread, but most Linux manual pages recommend using -pthread, and a lot of projects use it.
2020-04-21driver: Print unknown option before usage messageMichael Forney
2020-03-23driver: Handle -isystemMichael Forney
2020-01-30driver: Allow preprocessing C headersMichael Forney
2019-11-20driver: Pass -std=* through to the preprocessorMichael Forney
This will prevent the preprocessor from defining several unreserved identifiers when built with an ISO C language standard, which may conflict with identifiers used by the program being built.
2019-11-17driver: phase -> stageMichael Forney
2019-11-17driver: Preprocess assembly files with .S extensionMichael Forney
2019-08-17driver: Use LEN(phases) instead of NPHASESMichael Forney
2019-07-07driver: Print error message when run with unsupported targetMichael Forney
2019-07-05Rename to cprocMichael Forney
Fixes #4
2019-07-05driver: Ignore -P flagMichael Forney
We don't emit any #line directives, so nothing needs to be done to handle this flag.
2019-06-27Pass target to cc-qbeMichael Forney
2019-06-17driver: Add some more dependency handling optionsMichael Forney
2019-05-20driver: Avoid pipe2 for now, it is not yet standardizedMichael Forney
pipe2 is accepted for the next POSIX, but this is not yet released, and some platforms (in particular macOS) do not yet support it.
2019-05-14driver: Allow empty start/end filesMichael Forney
Since empty arrays are not allowed, use a single element array containing NULL pointer to specify this.
2019-05-13driver: Add verbose modeMichael Forney
2019-04-26Remove compilecmd from config.hMichael Forney
We replace it with one derived from the driver path anyway.
2019-04-17driver: Use arrayforeachMichael Forney
2019-04-07driver: Use argv[0] to determine cc-qbe path if /proc/self/exe is not availableMichael Forney
2019-04-07driver: Make sure we have room for the '\0' byteMichael Forney
2019-04-06driver: Include signal.h for kill(2)Michael Forney
2019-03-01Add -M and -MM to support our own makefile.Andrew Chambers
2019-02-24driver: Fix -E with no output specifiedMichael Forney
2019-02-21driver: Create output files in current directoryMichael Forney
2019-02-21driver: Fix -o -Michael Forney
We need to distinguish between no output specified, and output specified to be standard out.
2019-02-20driver: Various improvementsMichael Forney
Use an input struct to keep track of information about an input. When creating an output name from an input with no extension, make sure to add a `.`. When linking, write intermediate objects to temporary files and remove them afterwards. Allow specifying language of input using `-x` flag. Allow reading from standard input by passing `-`.
2019-02-13driver: Remove debug printfMichael Forney
2019-02-13driver: Ignore -std= and -pedanticMichael Forney
2019-02-13driver: Pass -idirafter to preprocessorMichael Forney
2019-02-12driver: Ignore -pipe flagMichael Forney
2019-02-12driver: Ignore -g flagMichael Forney
2019-02-12Initial importMichael Forney