Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
d6d5c792
Commit
d6d5c792
authored
May 21, 2016
by
Harris Hancock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow MSVC to build non-lite mode
parent
c7268191
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
13 deletions
+0
-13
CMakeLists.txt
c++/CMakeLists.txt
+0
-5
common.h
c++/src/capnp/common.h
+0
-5
common.h
c++/src/kj/common.h
+0
-3
No files found.
c++/CMakeLists.txt
View file @
d6d5c792
...
...
@@ -34,11 +34,6 @@ if(CAPNP_LITE AND BUILD_TESTING AND NOT EXTERNAL_CAPNP)
message
(
SEND_ERROR
"You must set EXTERNAL_CAPNP when using CAPNP_LITE and BUILD_TESTING."
)
endif
()
if
(
MSVC AND NOT CAPNP_LITE
)
message
(
SEND_ERROR
"Building with MSVC is only supported with CAPNP_LITE."
)
endif
()
if
(
CAPNP_LITE
)
set
(
CAPNP_LITE_FLAG
"-DCAPNP_LITE"
)
# This flag is attached as PUBLIC target_compile_definition to kj target
...
...
c++/src/capnp/common.h
View file @
d6d5c792
...
...
@@ -44,11 +44,6 @@ namespace capnp {
#define CAPNP_VERSION \
(CAPNP_VERSION_MAJOR * 1000000 + CAPNP_VERSION_MINOR * 1000 + CAPNP_VERSION_MICRO)
#ifdef _MSC_VER
#define CAPNP_LITE 1
// MSVC only supports "lite" mode for now, due to missing C++11 features.
#endif
#ifndef CAPNP_LITE
#define CAPNP_LITE 0
#endif
...
...
c++/src/kj/common.h
View file @
d6d5c792
...
...
@@ -63,9 +63,6 @@
#elif defined(_MSC_VER)
#if _MSC_VER < 1900
#error "You need Visual Studio 2015 or better to compile this code."
#elif !CAPNP_LITE
// TODO(cleanup): This is KJ, but we're talking about Cap'n Proto.
#error "As of this writing, Cap'n Proto only supports Visual C++ in 'lite mode'; please #define CAPNP_LITE"
#endif
#else
#warning "I don't recognize your compiler. As of this writing, Clang and GCC are the only "\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment