-
Notifications
You must be signed in to change notification settings - Fork 275
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
Avoid leaking internal headers for ppc #164
Conversation
src/cpuinfo_ppc.c
Outdated
@@ -130,23 +130,29 @@ PPCInfo GetPPCInfo(void) { | |||
return info; | |||
} | |||
|
|||
PPCPlatformTypeStrings kEmptyPPCPlatformTypeStrings; | |||
|
|||
PPCPlatformTypeStrings CpuFeatures_GetPlatformType(void) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GetPPCPlatformTypeString()
?
like line 151: PPCPlatformStrings GetPPCPlatformStrings(void) {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: Need to fix test/cpuinfo_ppc_test.cc
FAILED: /usr/bin/c++ -DCPU_FEATURES_MOCK_FILESYSTEM -DCPU_FEATURES_TEST -DSTACK_LINE_READER_BUFFER_SIZE=1024 -I../../test/../include -isystem googletest-src/googletest/include -isystem googletest-src/googletest -isystem googletest-src/googlemock/include -isystem googletest-src/googlemock -g -std=c++11 -MMD -MT test/CMakeFiles/cpuinfo_ppc_test.dir/cpuinfo_ppc_test.cc.o -MF test/CMakeFiles/cpuinfo_ppc_test.dir/cpuinfo_ppc_test.cc.o.d -o test/CMakeFiles/cpuinfo_ppc_test.dir/cpuinfo_ppc_test.cc.o -c ../../test/cpuinfo_ppc_test.cc
313../../test/cpuinfo_ppc_test.cc: In member function ‘virtual void cpu_features::{anonymous}::CpustringsPPCTest_Blade_Test::TestBody()’:
314../../test/cpuinfo_ppc_test.cc:60:38: error: ‘SetPlatformTypes’ was not declared in this scope
315 SetPlatformTypes("power7", "power8");
ref: https://travis-ci.org/github/google/cpu_features/jobs/774641309
ps: Again I would refactor it to SetPPCPlatformTypeString()
;)
No description provided.