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/2a839ead Tree: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/tree/2a839ead Diff: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/diff/2a839ead Branch: refs/heads/solaris_fixes Commit: 2a839ead5df7a9161a049f115050ba58443f68c7 Parents: 34d147d Author: Nick Wellnhofer <[email protected]> Authored: Tue Aug 19 17:05:10 2014 +0200 Committer: Nick Wellnhofer <[email protected]> Committed: Tue Aug 19 17:05: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/2a839ead/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/2a839ead/src/Charmonizer/Core/Compiler.c ---------------------------------------------------------------------- diff --git a/src/Charmonizer/Core/Compiler.c b/src/Charmonizer/Core/Compiler.c index ba74189..45d092f 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; }
