Sha256: 6ddc57922c0923606da6196ed9f81c6fafa6aed65abf7ce5ec98523bfd0d10cb

Contents?: true

Size: 782 Bytes

Versions: 1

Compression:

Stored size: 782 Bytes

Contents

# Copyright 2020 The Mesh Authors. All rights reserved.
# Use of this source code is governed by the Apache License,
# Version 2.0, that can be found in the LICENSE file.

COMMON_FLAGS = [
    # warn on lots of stuff; this is cargo-culted from the old Make build system
    "-Wall",
    "-Wextra",
    "-Werror=pointer-arith",
    "-pedantic",
    "-Wno-unused-parameter",
    "-Wno-unused-variable",
    "-Woverloaded-virtual",
    "-Werror=return-type",
    "-Wtype-limits",
    "-Wempty-body",
    "-Winvalid-offsetof",
    "-Wvariadic-macros",
    "-Wcast-align",
]

MESH_LLVM_FLAGS = []

MESH_GCC_FLAGS = [
    "-Wa,--noexecstack",
]

MESH_DEFAULT_COPTS = select({
    "//src:llvm": COMMON_FLAGS + MESH_LLVM_FLAGS,
    "//conditions:default": COMMON_FLAGS + MESH_GCC_FLAGS,
})

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mesh-rb-0.0.1 ext/mesh/mesh/src/copts.bzl