You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2014/12/27 14:08:02 UTC
[2/2] lucy-clownfish git commit: Add "host" CLI argument to CFC
charmonizer
Add "host" CLI argument to CFC charmonizer
Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/c9a86b0d
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/c9a86b0d
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/c9a86b0d
Branch: refs/heads/thread_safe_errors
Commit: c9a86b0dc0d48c485b37865c414451facaf18051
Parents: 98ef222
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Sat Dec 27 14:06:58 2014 +0100
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Sat Dec 27 14:06:58 2014 +0100
----------------------------------------------------------------------
compiler/common/charmonizer.c | 4 +++-
compiler/common/charmonizer.main | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/c9a86b0d/compiler/common/charmonizer.c
----------------------------------------------------------------------
diff --git a/compiler/common/charmonizer.c b/compiler/common/charmonizer.c
index 0d295c2..20049b3 100644
--- a/compiler/common/charmonizer.c
+++ b/compiler/common/charmonizer.c
@@ -7739,6 +7739,8 @@ int main(int argc, const char **argv) {
/* Initialize. */
chaz_CLI *cli
= chaz_CLI_new(argv[0], "charmonizer: Probe C build environment");
+ chaz_CLI_register(cli, "host", "specify host binding language",
+ CHAZ_CLI_ARG_REQUIRED);
chaz_CLI_set_usage(cli, "Usage: charmonizer [OPTIONS] [-- [CFLAGS]]");
{
int result = chaz_Probe_parse_cli_args(argc, argv, cli);
@@ -7791,7 +7793,7 @@ S_add_compiler_flags(struct chaz_CLI *cli) {
"-DLUCY_DEBUG -pedantic -Wall -Wextra -Wno-variadic-macros"
);
}
- if (chaz_CLI_defined(cli, "enable-perl")) {
+ if (strcmp(chaz_CLI_strval(cli, "host"), "perl") == 0) {
chaz_CFlags_append(extra_cflags, "-DPERL_GCC_PEDANTIC");
}
http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/c9a86b0d/compiler/common/charmonizer.main
----------------------------------------------------------------------
diff --git a/compiler/common/charmonizer.main b/compiler/common/charmonizer.main
index 2c5a376..a4647fe 100644
--- a/compiler/common/charmonizer.main
+++ b/compiler/common/charmonizer.main
@@ -41,6 +41,8 @@ int main(int argc, const char **argv) {
/* Initialize. */
chaz_CLI *cli
= chaz_CLI_new(argv[0], "charmonizer: Probe C build environment");
+ chaz_CLI_register(cli, "host", "specify host binding language",
+ CHAZ_CLI_ARG_REQUIRED);
chaz_CLI_set_usage(cli, "Usage: charmonizer [OPTIONS] [-- [CFLAGS]]");
{
int result = chaz_Probe_parse_cli_args(argc, argv, cli);
@@ -93,7 +95,7 @@ S_add_compiler_flags(struct chaz_CLI *cli) {
"-DLUCY_DEBUG -pedantic -Wall -Wextra -Wno-variadic-macros"
);
}
- if (chaz_CLI_defined(cli, "enable-perl")) {
+ if (strcmp(chaz_CLI_strval(cli, "host"), "perl") == 0) {
chaz_CFlags_append(extra_cflags, "-DPERL_GCC_PEDANTIC");
}