* Add .travis.yml configuration file for Travis CI This builds Linux x64 clang 6.0-dev debug/optimised variants. * Make clang/libc++ locations configurable from cake command-line. Added new cake command-line args for Linux/Darwin builds: --clang-executable=PATH --clang-install-prefix=PATH * Refactored config.cake to remove duplication between Linux/Darwin build variants. * Added `build-clang.sh` and `build-libcxx.sh` helper scripts. * Add Linux build status badge to README. * Make Appveyor badge link to build status page. * Ignore Linux CI failures for clang optimised builds. They are currently failing due to a compiler bug.
47 lines
1.3 KiB
C#
47 lines
1.3 KiB
C#
##############################################################################
|
|
# cppcoro library
|
|
#
|
|
# This file defines extra command-line args specific to the cppcoro project.
|
|
##############################################################################
|
|
from cake.script import Script
|
|
import cake.system
|
|
|
|
parser = Script.getCurrent().engine.parser
|
|
|
|
# Add a project generation option. It will be stored in 'engine.options' which
|
|
# can later be accessed in our config.cake.
|
|
parser.add_option(
|
|
"-p", "--projects",
|
|
action="store_true",
|
|
dest="createProjects",
|
|
help="Create projects instead of building a variant.",
|
|
default=False,
|
|
)
|
|
|
|
if cake.system.isLinux() or cake.system.isDarwin():
|
|
parser.add_option(
|
|
"--clang-install-prefix",
|
|
dest="clangInstallPrefix",
|
|
type="string",
|
|
metavar="PATH",
|
|
default=None,
|
|
help="Path where clang has been installed."
|
|
)
|
|
|
|
parser.add_option(
|
|
"--clang-executable",
|
|
dest="clangExecutable",
|
|
type="string",
|
|
metavar="FILE",
|
|
default="clang",
|
|
help="Name or full-path of clang executable to compile with")
|
|
|
|
parser.add_option(
|
|
"--libcxx-install-prefix",
|
|
dest="libcxxInstallPrefix",
|
|
type="string",
|
|
metavar="PATH",
|
|
default=None,
|
|
help="Path where libc++ has been installed.\n"
|
|
"Defaults to value of --clang-install-prefix")
|