summaryrefslogtreecommitdiff
path: root/etc/defaults/CC/TARGETS.boringssl
diff options
context:
space:
mode:
Diffstat (limited to 'etc/defaults/CC/TARGETS.boringssl')
-rw-r--r--etc/defaults/CC/TARGETS.boringssl70
1 files changed, 70 insertions, 0 deletions
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"]
+ }
+}