diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-05-02 20:01:21 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-05-02 20:01:21 -0400 |
| commit | 5f0bddd4718cb03a28022fb9356e1d13d81e44ae (patch) | |
| tree | d44e1d57c81d837060b286edfdc467aa12bc7132 | |
| parent | ad9ac26155ab199c082a675811ece734fe70bce3 (diff) | |
Deprecate --c-compiler flag, since builds compiled with different
compilers won't play nice anyways
| -rw-r--r-- | docs/tomo.1.md | 10 | ||||
| -rw-r--r-- | man/man1/tomo.1 | 8 | ||||
| -rw-r--r-- | src/tomo.c | 2 |
3 files changed, 0 insertions, 20 deletions
diff --git a/docs/tomo.1.md b/docs/tomo.1.md index 29d9414f..c77e91cf 100644 --- a/docs/tomo.1.md +++ b/docs/tomo.1.md @@ -53,9 +53,6 @@ C code, which is then compiled using a C compiler of your choice. `-C` *<program>*, `--show-codegen` *<program>* : Set a program (e.g. `cat` or `bat`) to display the generated code -`--c-compiler` -: Set which C compiler is used. - `-O` **level**, `--optimization` **level** : Set the optimization level. @@ -67,10 +64,3 @@ C code, which is then compiled using a C compiler of your choice. `-r`, `--run` : Run an installed tomo program from `~/.local/share/tomo/installed`. - -## ENVIRONMENT VARIABLES - -Some options can be configured by setting environment variables. - -`CC=`*c-compiler* -: Set which C compiler is used. diff --git a/man/man1/tomo.1 b/man/man1/tomo.1 index 37252921..3be93108 100644 --- a/man/man1/tomo.1 +++ b/man/man1/tomo.1 @@ -51,9 +51,6 @@ Install the compiled executable or library. Set a program (e.g.\ \f[B]cat\f[R] or \f[B]bat\f[R]) to display the generated code .TP -\f[B]\-\-c\-compiler\f[R] -Set which C compiler is used. -.TP \f[B]\-O\f[R] \f[B]level\f[R], \f[B]\-\-optimization\f[R] \f[B]level\f[R] Set the optimization level. .TP @@ -66,10 +63,5 @@ Print the compiler version and exit. \f[B]\-r\f[R], \f[B]\-\-run\f[R] Run an installed tomo program from \f[B]\[ti]/.local/share/tomo/installed\f[R]. -.SS ENVIRONMENT VARIABLES -Some options can be configured by setting environment variables. -.TP -\f[B]CC=\f[R]\f[I]c\-compiler\f[R] -Set which C compiler is used. .SH AUTHORS Bruce Hill (\f[I]bruce\[at]bruce\-hill.com\f[R]). @@ -174,7 +174,6 @@ int main(int argc, char *argv[]) " --quiet|-q: quiet output\n" " --parse|-p: show parse tree\n" " --install|-I: install the executable or library\n" - " --c-compiler <compiler>: the C compiler to use (default: "DEFAULT_C_COMPILER")\n" " --optimization|-O <level>: set optimization level\n" " --run|-r: run a program from " TOMO_HOME "/installed\n" ); @@ -204,7 +203,6 @@ int main(int argc, char *argv[]) {"C", false, &Text$info, &show_codegen}, {"install", false, &Bool$info, &should_install}, {"I", false, &Bool$info, &should_install}, - {"c-compiler", false, &Text$info, &cc}, {"optimization", false, &Text$info, &optimization}, {"O", false, &Text$info, &optimization}, {"force-rebuild", false, &Bool$info, &clean_build}, |
