From 5f0bddd4718cb03a28022fb9356e1d13d81e44ae Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 2 May 2025 20:01:21 -0400 Subject: Deprecate --c-compiler flag, since builds compiled with different compilers won't play nice anyways --- docs/tomo.1.md | 10 ---------- man/man1/tomo.1 | 8 -------- src/tomo.c | 2 -- 3 files changed, 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` **, `--show-codegen` ** : 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]). diff --git a/src/tomo.c b/src/tomo.c index c8e2fa70..4d6b4bef 100644 --- a/src/tomo.c +++ b/src/tomo.c @@ -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 : the C compiler to use (default: "DEFAULT_C_COMPILER")\n" " --optimization|-O : 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}, -- cgit v1.2.3