Flags style for Sun C compiler
Project: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/commit/e8d79b60 Tree: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/tree/e8d79b60 Diff: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/diff/e8d79b60 Branch: refs/heads/master Commit: e8d79b60b97180e01b408f23854b9f19096e0323 Parents: 377b5a0 Author: Nick Wellnhofer <[email protected]> Authored: Tue Aug 19 17:05:10 2014 +0200 Committer: Nick Wellnhofer <[email protected]> Committed: Tue Aug 19 22:32:10 2014 +0200 ---------------------------------------------------------------------- src/Charmonizer/Core/CFlags.h | 1 + src/Charmonizer/Core/Compiler.c | 3 +++ 2 files changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/blob/e8d79b60/src/Charmonizer/Core/CFlags.h ---------------------------------------------------------------------- diff --git a/src/Charmonizer/Core/CFlags.h b/src/Charmonizer/Core/CFlags.h index 8cd14d9..84eb997 100644 --- a/src/Charmonizer/Core/CFlags.h +++ b/src/Charmonizer/Core/CFlags.h @@ -29,6 +29,7 @@ extern "C" { #define CHAZ_CFLAGS_STYLE_POSIX 1 #define CHAZ_CFLAGS_STYLE_GNU 2 #define CHAZ_CFLAGS_STYLE_MSVC 3 +#define CHAZ_CFLAGS_STYLE_SUN_C 4 typedef struct chaz_CFlags chaz_CFlags; http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/blob/e8d79b60/src/Charmonizer/Core/Compiler.c ---------------------------------------------------------------------- diff --git a/src/Charmonizer/Core/Compiler.c b/src/Charmonizer/Core/Compiler.c index 5ecfc2b..dbe36e7 100644 --- a/src/Charmonizer/Core/Compiler.c +++ b/src/Charmonizer/Core/Compiler.c @@ -97,6 +97,9 @@ chaz_CC_init(const char *compiler_command, const char *compiler_flags) { else if (chaz_CC.intval__MSC_VER) { chaz_CC.cflags_style = CHAZ_CFLAGS_STYLE_MSVC; } + else if (chaz_CC.intval___SUNPRO_C) { + chaz_CC.cflags_style = CHAZ_CFLAGS_STYLE_SUN_C; + } else { chaz_CC.cflags_style = CHAZ_CFLAGS_STYLE_POSIX; }
