Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

actually disable grpc when no grpc & fixes grpc issues on linux #101

Merged
merged 9 commits into from
Mar 15, 2020

Conversation

fundies
Copy link
Contributor

@fundies fundies commented Mar 12, 2020

CMakeLists.txt Outdated
option(RGM_ENABLE_GRPC_SERVER "Enable the GRPC client plugin for compilation and code analysis." ON)
else()
option(RGM_ENABLE_GRPC_SERVER "Enable the GRPC client plugin for compilation and code analysis." OFF)
endif()
Copy link
Contributor

@RobertBColton RobertBColton Mar 12, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you do this? That was super clean. And also why not:

if (WIN32)
  set(RGM_ENABLE_GRPC_SERVER_ON ON)
else()
  set(RGM_ENABLE_GRPC_SERVER_ON OFF)
endif()

option(RGM_ENABLE_GRPC_SERVER "Enable the GRPC client plugin for compilation and code analysis." ${RGM_ENABLE_GRPC_SERVER_ON})

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cause your way completely hides the option on linux mine just disables it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, cause i dont have OCD like u

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well it's not really OCD, it's just like if you have to type that string multiple times you are more likely to make a typo and cause a run time bug. Whereas if you make a typo in my way, even though it's more characters, it's instead more likely to be a compile time error.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds like ocd to me. if you tested that works ill append the pr tho

#include "Plugins/ServerPlugin.h"
#endif
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I did miss that one.

@fundies fundies changed the title actually disable grpc when no grpc actually disable grpc when no grpc & fixes grpc issues on linux Mar 14, 2020
@fundies fundies closed this Mar 14, 2020
@fundies fundies reopened this Mar 14, 2020
@fundies fundies closed this Mar 14, 2020
@fundies fundies reopened this Mar 14, 2020
@RobertBColton RobertBColton reopened this Mar 14, 2020
Copy link
Contributor

@RobertBColton RobertBColton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works here still and I see you got the Arch/Linux problems fixed so nice going!

CMakeLists.txt Outdated Show resolved Hide resolved
@RobertBColton RobertBColton merged commit b3cc0ac into enigma-dev:master Mar 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants