Skip to content

Commit

Permalink
Improvements to the way the COMPILER compile-time option is set when …
Browse files Browse the repository at this point in the history
…compiling

with Clang.
  • Loading branch information
D. Richard Hipp committed Jul 28, 2016
1 parent 8c7bda5 commit dfb4bcd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ctime.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ static const char * const azCompileOpt[] = {
#if SQLITE_CHECK_PAGES
"CHECK_PAGES",
#endif
#if defined(__clang__) && defined(__clang_version__)
"COMPILER=clang-" __clang_version__,
#if defined(__clang__) && defined(__clang_major__)
"COMPILER=clang-" CTIMEOPT_VAL(__clang_major__) "."
CTIMEOPT_VAL(__clang_minor__) "."
CTIMEOPT_VAL(__clang_patchlevel__),
#elif defined(_MSC_VER)
"COMPILER=msvc-" CTIMEOPT_VAL(_MSC_VER),
#elif defined(__GNUC__) && defined(__VERSION__)
Expand Down

0 comments on commit dfb4bcd

Please sign in to comment.