summaryrefslogtreecommitdiff
path: root/etc/defaults
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-04-25 17:44:58 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-04-28 13:54:21 +0200
commit99dfe9d351cde88d3fd1481552cf33898ff539d9 (patch)
tree66dffd705b3812ec7fea2b0110a767ce18593a97 /etc/defaults
parent63ad51503b45572ae8cded94447fd1e93234a09f (diff)
downloadjustbuild-99dfe9d351cde88d3fd1481552cf33898ff539d9.tar.gz
external: Update ssl to version 6195bf8
Diffstat (limited to 'etc/defaults')
-rw-r--r--etc/defaults/CC/TARGETS.boringssl97
1 files changed, 94 insertions, 3 deletions
diff --git a/etc/defaults/CC/TARGETS.boringssl b/etc/defaults/CC/TARGETS.boringssl
index bb164ad9..19106589 100644
--- a/etc/defaults/CC/TARGETS.boringssl
+++ b/etc/defaults/CC/TARGETS.boringssl
@@ -43,10 +43,101 @@
, "-Wmissing-field-initializers"
, "-Wwrite-strings"
, "-Wshadow"
- , "-Wno-unknown-warning-option"
- , "-Wno-array-parameter"
- , "-Wno-unused-but-set-variable"
, "-fno-common"
+ , "-Wmissing-prototypes"
+ , "-Wold-style-definition"
+ , "-Wstrict-prototypes"
+ ]
+ ]
+ ]
+ , "body":
+ { "type": "++"
+ , "$1":
+ [ { "type": "case"
+ , "expr":
+ { "type": "var"
+ , "name": "TARGET_ARCH"
+ , "default": {"type": "var", "name": "ARCH"}
+ }
+ , "case": {"arm": ["-Wno-atomic-alignment"]}
+ }
+ , { "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"]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ , "ADD_CXXFLAGS":
+ { "type": "++"
+ , "$1":
+ [ ["-std=c++20"]
+ , { "type": "let*"
+ , "bindings":
+ [ [ "OS"
+ , { "type": "var"
+ , "name": "OS"
+ , "default":
+ {"type": "fail", "msg": "Required variable 'OS' is not set."}
+ }
+ ]
+ , [ "ARCH"
+ , { "type": "var"
+ , "name": "ARCH"
+ , "default":
+ {"type": "fail", "msg": "Required variable 'ARCH' is not set."}
+ }
+ ]
+ , [ "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"
+ , "-Wformat=2"
+ , "-Wsign-compare"
+ , "-Wmissing-field-initializers"
+ , "-Wwrite-strings"
+ , "-Wshadow"
+ , "-fno-common"
+ , "-Wmissing-declarations"
]
]
]