Skip to content

Commit

Permalink
Support building Mozc with Visual C++ 2015
Browse files Browse the repository at this point in the history
With this CL,
  build_mozc.py gyp --msvs_version=2015
should start working.

BUG=#315
TEST=
REF_BUG=24654559
REF_CL=108838384
  • Loading branch information
yukawa committed Nov 27, 2015
1 parent 6555d82 commit 9b97b61
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/base/port.h
Expand Up @@ -85,9 +85,9 @@ typedef long long int64;

#include <stdint.h>

#ifdef _MSC_VER
#if defined(_MSC_VER) && _MSC_VER < 1900
#define snprintf _snprintf_s
#endif // _MSC_VER
#endif // _MSC_VER < 1900

template <typename T, size_t N>
char (&ArraySizeHelper(T (&array)[N]))[N];
Expand Down
6 changes: 6 additions & 0 deletions src/gyp/common.gypi
Expand Up @@ -132,6 +132,12 @@
'compiler_host': 'msvs',
'compiler_host_version_int': 1800, # Visual C++ 2013 or higher
}],
['MSVS_VERSION=="2015"', {
'compiler_target': 'msvs',
'compiler_target_version_int': 1900, # Visual C++ 2015 or higher
'compiler_host': 'msvs',
'compiler_host_version_int': 1900, # Visual C++ 2015 or higher
}],
],
}],
['OS=="mac"', {
Expand Down
2 changes: 1 addition & 1 deletion src/mozc_version_template.txt
@@ -1,6 +1,6 @@
MAJOR=2
MINOR=17
BUILD=2390
BUILD=2391
REVISION=102
# NACL_DICTIONARY_VERSION is the target version of the system dictionary to be
# downloaded by NaCl Mozc.
Expand Down

0 comments on commit 9b97b61

Please sign in to comment.