summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2022-08-26[configure.ac] Only check for compiler options late in the processHEADmainDennis Camera1-56/+56
Setting too many options already breaks some of autoconf's standard checks, e.g. for stdbool.h. configure:5449: checking for stdbool.h that conforms to C99 configure:5565: gcc -c -g -O2 -Wall -Werror -pedantic -pedantic-errors -Werror=pedantic -Wformat=2 -Wformat-overflow=2 -fstack-protector-strong -fstack-clash-protection -fsanitize=leak -fsanitize=address -fsanitize=pointer-compare -fsanitize=pointer-subtract -fsanitize=undefined -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=500 conftest.c >&5 conftest.c: In function 'main': conftest.c:125:14: error: the address of 's' will always evaluate as 'true' [-Werror=address] 125 | bool ps = &s; | ^~~~ conftest.c:130:16: error: the address of 't' will always evaluate as 'true' [-Werror=address] 130 | _Bool pt = &t; | ^~~~~ conftest.c:137:22: error: the address of 'a' will always evaluate as 'true' [-Werror=address] 137 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k | ^ conftest.c:137:27: error: the address of 'b' will always evaluate as 'true' [-Werror=address] 137 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k | ^ conftest.c:137:32: error: the address of 'c' will always evaluate as 'true' [-Werror=address] 137 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k | ^ conftest.c:137:37: error: the address of 'd' will always evaluate as 'true' [-Werror=address] 137 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k | ^ conftest.c:137:62: error: the address of 'i' will always evaluate as 'true' [-Werror=address] 137 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k | ^
2022-08-26[configure.ac] Check for VLA supportDennis Camera1-1/+6
VLAs are already used in the code base.
2022-08-26[configure.ac] Check for POSIX conformance after feature checksDennis Camera1-24/+23
2022-08-26Also check compiler support for -Wall -WerrorDennis Camera2-1/+3
if the infrastructure is already there…
2022-08-26[configure.ac] Fix false positive for -fstack-clash-protection with Apple ClangDennis Camera1-3/+8
Newer (> ~10) versions of Clang don't exit if they see an unknown argument but only log a warning by default. So we check if the compiler supports
-Werror=unused-command-line-argument and if so, we use it to check if the compiler options are supported.
2022-08-25[scripts/sdump] Add sdump scriptDennis Camera4-0/+298
2022-08-25[configure.ac] Use -fsanitize if availableDennis Camera1-0/+7
2022-08-25Stilistic changesDennis Camera2-9/+8
2022-08-25...and the fixes for new compile errors :-)Dennis Camera5-18/+49
2022-08-25Enable more __attribute__sDennis Camera8-29/+97
2022-08-25[configure.ac] Simplify DEBUG macro definitionDennis Camera1-3/+3
2022-08-25Use format __attribute__ instead of -Wformat-nonliteral hackDennis Camera6-11/+328
2022-08-23[src/config.c] Update remote_out_path to /tmp/skonfigDennis Camera1-1/+1
...to be consistent with Python skonfig.
2022-08-22Fix clang compile errorsDennis Camera5-13/+35
2022-08-22Implement command executionDennis Camera15-11/+715
2022-08-21[src/run.c] Add more structure functionsDennis Camera1-4/+63
2022-08-21[src/run.c] Time configuration runDennis Camera1-10/+30
2022-08-21[src/run.c] Move creatfile, mktempdir, rmtree to util/fs.cDennis Camera3-111/+130
2022-08-21Work around void * arithmetic errorsDennis Camera2-4/+6
...but the data structure should probably be reworked instead of relying on the optional uintptr_t type :-/
2022-08-21[src/log.h] Fix variadic macro error (-pedantic)Dennis Camera1-5/+5
src/skonfig.c: In function ‘main’: src/skonfig.c:229:64: error: ISO C99 requires at least one argument for the "..." in a variadic macro 229 | sk_error("cannot find configuration directory."); | ^
2022-08-21[configure.ac] Enable -pedantic, -pedantic-errors, -Werror=pedantic if ↵Dennis Camera1-0/+4
supported by $CC
2022-08-21[src/run.c] Generate and store object markerDennis Camera1-1/+51
2022-08-21[src/run.c] Implement linking type runner to type commandsDennis Camera2-1/+44
2022-08-21[src/run.c] Implement linking SK_PATH into local_hostdirDennis Camera2-26/+146
2022-08-20[src/run.c] Use pathjoin_r for simpler logicDennis Camera1-18/+30
2022-08-20[src/util/string.c] Add _r variants for strjoin functionsDennis Camera2-63/+144
2022-08-20Create sub directories of local workdirDennis Camera1-8/+52
2022-08-20Implement local workdir clean upDennis Camera2-0/+34
2022-08-19Implement creation of local temporary workdirDennis Camera3-10/+159
2022-08-19[configure.ac] Fix no AC_LANG_SOURCE call detected in bodyDennis Camera1-3/+3
configure.ac:29: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ./lib/autoconf/lang.m4:199: AC_LANG_CONFTEST is expanded from... ./lib/autoconf/general.m4:2823: _AC_COMPILE_IFELSE is expanded from... ./lib/autoconf/general.m4:2839: AC_COMPILE_IFELSE is expanded from...
2022-08-18[Makefile.am] Remove manual setting of -O and -g CC flagsDennis Camera1-6/+0
autoconf already checks and sets these options
2022-08-18[configure.ac] Check for correct POSIX conformance levelDennis Camera2-1/+19
2022-08-18[configure.ac] Check for some compiler security flags and use them if availableDennis Camera2-1/+33
2022-08-17MiscDennis Camera3-8/+20
2022-08-17Compiler includes config.h in all modulesDennis Camera6-10/+1
2022-08-15Implement stub run moduleDennis Camera4-2/+78
2022-08-14Implement logging moduleDennis Camera8-56/+391
2022-08-03[configure.ac] Check if the compiling system supports shebangsDennis Camera1-0/+9
2022-08-03[src/config.c] Add config module (does not parse INI files, yet)Dennis Camera5-0/+502
2022-08-03Move helper functions out to src/util/Dennis Camera9-48/+356
2022-08-03[skonfig.c] Implement option parserDennis Camera3-10/+245
2022-08-03Set package URLDennis Camera1-1/+1
2022-08-03Rename main.c to skonfig.cDennis Camera3-2/+2
2022-08-03Add debug buildsDennis Camera3-0/+38
2022-08-03Add Autotools frameworkDennis Camera10-0/+1330