diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-02-22 17:03:21 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-02-22 17:03:21 +0100 |
commit | 619def44c1cca9f3cdf63544d5f24f2c7a7d9b77 (patch) | |
tree | 01868de723cb82c86842f33743fa7b14e24c1fa3 /etc/defaults | |
download | justbuild-619def44c1cca9f3cdf63544d5f24f2c7a7d9b77.tar.gz |
Initial self-hosting commit
This is the initial version of our tool that is able to
build itself. In can be bootstrapped by
./bin/bootstrap.py
Co-authored-by: Oliver Reiche <oliver.reiche@huawei.com>
Co-authored-by: Victor Moreno <victor.moreno1@huawei.com>
Diffstat (limited to 'etc/defaults')
-rw-r--r-- | etc/defaults/CC/TARGETS | 16 | ||||
-rw-r--r-- | etc/defaults/CC/TARGETS.boringssl | 70 | ||||
-rw-r--r-- | etc/defaults/CC/TARGETS.nowerror | 12 | ||||
-rw-r--r-- | etc/defaults/CC/TARGETS.protobuf | 19 | ||||
-rw-r--r-- | etc/defaults/CC/test/TARGETS | 1 |
5 files changed, 118 insertions, 0 deletions
diff --git a/etc/defaults/CC/TARGETS b/etc/defaults/CC/TARGETS new file mode 100644 index 00000000..d9f206c4 --- /dev/null +++ b/etc/defaults/CC/TARGETS @@ -0,0 +1,16 @@ +{ "defaults": + { "type": ["CC", "defaults"] + , "CC": ["clang"] + , "CXX": ["clang++"] + , "CFLAGS": [] + , "CXXFLAGS": + [ "-std=c++20" + , "-Wall" + , "-Wextra" + , "-Wpedantic" + , "-Wsign-conversion" + ] + , "AR": ["ar"] + , "PATH": ["/bin", "/sbin", "/usr/bin", "/usr/sbin"] + } +} diff --git a/etc/defaults/CC/TARGETS.boringssl b/etc/defaults/CC/TARGETS.boringssl new file mode 100644 index 00000000..c570b5d2 --- /dev/null +++ b/etc/defaults/CC/TARGETS.boringssl @@ -0,0 +1,70 @@ +{ "defaults": + { "type": ["CC", "defaults"] + , "arguments_config": ["OS", "ARCH", "TARGET_ARCH"] + , "CC": ["clang"] + , "CXX": ["clang++"] + , "CFLAGS": + { "type": "let*" + , "bindings": + [ [ "PLATFORM" + , { "type": "join" + , "separator": "_" + , "$1": + [ {"type": "var", "name": "OS"} + , { "type": "var" + , "name": "TARGET_ARCH" + , "default": {"type": "var", "name": "ARCH"} + } + ] + } + ] + , [ "posix_copts" + , [ "-Wa,--noexecstack" + , "-D_XOPEN_SOURCE=700" + , "-Wall" + , "-Werror" + , "-Wformat=2" + , "-Wsign-compare" + , "-Wmissing-field-initializers" + , "-Wwrite-strings" + , "-Wshadow" + , "-fno-common" + ] + ] + ] + , "body": + { "type": "cond" + , "cond": + [ [ { "type": "or" + , "$1": + [ { "type": "==" + , "$1": {"type": "var", "name": "PLATFORM"} + , "$2": "linux_ppc64le" + } + , { "type": "==" + , "$1": {"type": "var", "name": "PLATFORM"} + , "$2": "linux_x86_64" + } + , { "type": "==" + , "$1": {"type": "var", "name": "PLATFORM"} + , "$2": "mac_x86_64" + } + ] + } + , {"type": "var", "name": "posix_copts"} + ] + , [ { "type": "==" + , "$1": {"type": "var", "name": "PLATFORM"} + , "$2": "windows_x86_64" + } + , ["-DWIN32_LEAN_AND_MEAN", "-DOPENSSL_NO_ASM"] + ] + ] + , "default": ["-DOPENSSL_NO_ASM"] + } + } + , "CXXFLAGS": [] + , "AR": ["ar"] + , "PATH": ["/bin", "/sbin", "/usr/bin", "/usr/sbin"] + } +} diff --git a/etc/defaults/CC/TARGETS.nowerror b/etc/defaults/CC/TARGETS.nowerror new file mode 100644 index 00000000..ecc58daf --- /dev/null +++ b/etc/defaults/CC/TARGETS.nowerror @@ -0,0 +1,12 @@ +{ "defaults": + { "type": ["CC", "defaults"] + , "CC": ["clang"] + , "CXX": ["clang++"] + , "CFLAGS": [] + , "CXXFLAGS": + [ "-std=c++20" + ] + , "AR": ["ar"] + , "PATH": ["/bin", "/sbin", "/usr/bin", "/usr/sbin"] + } +} diff --git a/etc/defaults/CC/TARGETS.protobuf b/etc/defaults/CC/TARGETS.protobuf new file mode 100644 index 00000000..b808ea51 --- /dev/null +++ b/etc/defaults/CC/TARGETS.protobuf @@ -0,0 +1,19 @@ +{ "defaults": + { "type": ["CC", "defaults"] + , "CC": ["clang"] + , "CXX": ["clang++"] + , "CFLAGS": [] + , "CXXFLAGS": + [ "-std=c++20" + , "-DHAVE_PTHREAD" + , "-DHAVE_ZLIB" + , "-Woverloaded-virtual" + , "-Wno-sign-compare" + , "-Wno-unused-function" + , "-Wno-write-strings" + , "-Wno-deprecated-declarations" + ] + , "AR": ["ar"] + , "PATH": ["/bin", "/sbin", "/usr/bin", "/usr/sbin"] + } +} diff --git a/etc/defaults/CC/test/TARGETS b/etc/defaults/CC/test/TARGETS new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/etc/defaults/CC/test/TARGETS @@ -0,0 +1 @@ +{} |