]> Kevux Git Server - fll/commitdiff
Update: The example project build settings and fakefiles.
authorKevin Day <thekevinday@gmail.com>
Wed, 6 Apr 2022 03:37:30 +0000 (22:37 -0500)
committerKevin Day <thekevinday@gmail.com>
Wed, 6 Apr 2022 03:37:30 +0000 (22:37 -0500)
These fell out of sync.
Add support for building via clang.
The "example-objects" project doesn't include support for clang because it is providing a minimalistic example.

The "path_standard" is now "has_path_standard".

level_3/fake/data/projects/bzip2/1.0.8/settings-bzip2
level_3/fake/data/projects/bzip2/1.0.8/settings-bzip2recover
level_3/fake/data/projects/cmocka/1.1.5/settings
level_3/fake/data/projects/example-objects/data/build/settings
level_3/fake/data/projects/example-objects/data/build/settings-a
level_3/fake/data/projects/example-objects/data/build/settings-e
level_3/fake/data/projects/example-objects/data/build/settings-f
level_3/fake/data/projects/example-objects/data/build/settings-k

index de100a12fd8a3c2ec5500ff47239c6982b6dfe5c..78bd98a7313ec2d36d656149c618e09e6a8708b5 100644 (file)
@@ -17,7 +17,11 @@ version_micro 8
 version_file micro
 version_target major
 
+modes individual gcc clang
+modes_default gcc
+
 build_compiler gcc
+build_compiler-clang clang
 build_indexer ar
 build_indexer_arguments rcs
 build_language c
@@ -27,10 +31,12 @@ build_sources_headers bzlib.h
 build_script no
 
 path_sources
-path_standard no
+has_path_standard no
+preserve_path_headers no
 
 defines -D_FILE_OFFSET_BITS=64
 
 flags -z now -g -fdiagnostics-color=always -Wall -Winline -O2
+flags-clang -Wno-logical-op-parentheses
 flags_library -fPIC
 flags_program -fPIE
index d0b8389a3f4543392a985485ec5f96b3f5c18e76..22a23a7f96219a0f6262cdfd84040dea66788b31 100644 (file)
@@ -17,7 +17,11 @@ version_micro 8
 version_file micro
 version_target major
 
+modes individual gcc clang
+modes_default gcc
+
 build_compiler gcc
+build_compiler-clang clang
 build_indexer ar
 build_indexer_arguments rcs
 build_language c
@@ -26,10 +30,12 @@ build_sources_program bzip2recover.c
 build_script no
 
 path_sources
-path_standard no
+has_path_standard no
+preserve_path_headers no
 
 defines -D_FILE_OFFSET_BITS=64
 
 flags -z now -g -fdiagnostics-color=always -Wall -Winline -O2
+flags-clang -Wno-logical-op-parentheses
 flags_library -fPIC
 flags_program -fPIE
index e0b847aa9765c50f6ee57ba324797169402138f7..32568a54e367f54e9e1568a891c06534d07b5638 100644 (file)
@@ -19,7 +19,11 @@ version_micro 5
 version_file micro
 version_target major
 
+modes individual gcc clang
+modes_default gcc
+
 build_compiler gcc
+build_compiler-clang clang
 build_indexer ar
 build_indexer_arguments rcs
 build_language c
@@ -27,13 +31,17 @@ build_libraries -pthread -lrt -lc
 build_sources_library src/cmocka.c
 build_sources_headers include/cmocka.h include/cmocka_pbc.h
 build_script no
+build_shared yes
+build_static no
 
 path_sources
-path_standard no
+has_path_standard no
+preserve_path_headers no
 
 defines -DHAVE_MALLOC_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_SIGNAL_H=1 -DHAVE_STRINGS_H=1 -DHAVE_GCC_THREAD_LOCAL_STORAGE=1 -DHAVE_CLOCK_REALTIME=1 -DHAVE_SIGLONGJMP=1 -DHAVE_STRSIGNAL=1
 
 flags -z now -g -fdiagnostics-color=always -Wall -Winline -O2 -Iinclude/ -std=gnu99
 flags -Wpedantic -Wall -Wshadow -Wmissing-prototypes -Wcast-align -Werror=address -Wstrict-prototypes -Werror=strict-prototypes -Wwrite-strings -Werror=write-strings -Werror-implicit-function-declaration -Wpointer-arith -Werror=pointer-arith -Wdeclaration-after-statement -Werror=declaration-after-statement -Wreturn-type -Werror=return-type -Wuninitialized -Werror=uninitialized -Wimplicit-fallthrough -Werror=strict-overflow -Wstrict-overflow=2 -Wno-format-zero-length -Wmissing-field-initializers -Wformat -Wformat-security -Werror=format-security
 flags -fno-common -fstack-protector-strong -fstack-clash-protection
+flags-clang -Wno-logical-op-parentheses
 flags_library -fPIC
index f4916edfe33f365d562f8f65eb2c8129eebcdd6c..0068d3981e0447943a97a07c6c8d674178867e4b 100644 (file)
@@ -16,7 +16,7 @@ build_sources_program fake.c
 build_script no
 
 path_sources sources
-path_standard no
+has_path_standard no
 
 flags -z now -g -fdiagnostics-color=always
 flags_object_shared -fPIC
index 6fb8f868d83311c76a222fb2ff426d4a98257d92..52ef68d16a3897249f269ae9de2a08ed63ea56ff 100644 (file)
@@ -15,7 +15,7 @@ build_sources_object a.c
 build_script no
 
 path_sources_object sources_object
-path_standard no
+has_path_standard no
 
 flags -z now -g -fdiagnostics-color=always
 flags_object_shared -fPIC
index f454c2fe665d1f4bef3e93614b3b1762169b8852..160629f21535197604a293875a4ff6f168efc51d 100644 (file)
@@ -15,7 +15,7 @@ build_sources_object e.c
 build_script no
 
 path_sources_object sources_object
-path_standard no
+has_path_standard no
 
 flags -z now -g -fdiagnostics-color=always
 flags_object_shared -fPIC
index a5991a9e6d79ab6902646bbb48f1890a7445dfe1..dd25627f49c8d04a7e254ee610e9ff6860f7b627 100644 (file)
@@ -15,7 +15,7 @@ build_sources_object f.c
 build_script no
 
 path_sources_object sources_object
-path_standard no
+has_path_standard no
 
 flags -z now -g -fdiagnostics-color=always
 flags_object_shared -fPIC
index 35768d3565561ea854c77472bc49709db0e03c34..a88e370f949db46f3065cf4aaf92908e6c3995e3 100644 (file)
@@ -15,7 +15,7 @@ build_sources_object k.c
 build_script no
 
 path_sources_object sources_object
-path_standard no
+has_path_standard no
 
 flags -z now -g -fdiagnostics-color=always
 flags_object_shared -fPIC