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

Avoid leaking internal headers for ppc #164

Merged
merged 4 commits into from
Jun 30, 2021
Merged

Avoid leaking internal headers for ppc #164

merged 4 commits into from
Jun 30, 2021

Conversation

gchatelet
Copy link
Collaborator

No description provided.

@gchatelet gchatelet added the bug Something isn't working label Jun 25, 2021
@gchatelet gchatelet changed the title Avoid leaking internal headers for ppc - fixes #151 Avoid leaking internal headers for ppc Jun 25, 2021
@gchatelet gchatelet linked an issue Jun 25, 2021 that may be closed by this pull request
@gchatelet gchatelet marked this pull request as draft June 25, 2021 09:09
include/cpuinfo_ppc.h Outdated Show resolved Hide resolved
include/cpuinfo_ppc.h Outdated Show resolved Hide resolved
@@ -130,23 +130,29 @@ PPCInfo GetPPCInfo(void) {
return info;
}

PPCPlatformTypeStrings kEmptyPPCPlatformTypeStrings;

PPCPlatformTypeStrings CpuFeatures_GetPlatformType(void) {
Copy link
Collaborator

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) {

Copy link
Collaborator

@Mizux Mizux left a 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() ;)

@gchatelet gchatelet marked this pull request as ready for review June 29, 2021 16:38
@gchatelet gchatelet merged commit b3ef4ef into master Jun 30, 2021
@gchatelet gchatelet deleted the fix_ppc branch June 30, 2021 10:14
@gchatelet gchatelet added this to the v0.7.0 milestone Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cpuinfo_ppc.h includes internal header
2 participants