-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
move absl namespace to int128 inc files #1861
base: master
Are you sure you want to change the base?
move absl namespace to int128 inc files #1861
Conversation
As far as I know, the code here is completely legal as-is. You can use a https://clang.llvm.org/docs/DiagnosticsReference.html#wmodules-import-nested-redundant The error here is
I think the problem may have something to do with the podspec configuration (which I know little about). If I recall correctly @veblush wrote it. abseil-cpp/absl/abseil.podspec.gen.py Lines 183 to 205 in d79e680
To me it looks like the problem is that the podspec is treating the |
The failure was from swift build failure which does not use podspec but https://github.com/firebase/abseil-cpp-SwiftPM. |
I'm not sure what point you are trying to make when you say you are just following a pattern. If this isn't working, something is wrong with the build. The code is completely legal. |
It's probably legal but maybe not compatible with all build systems. |
Can you file a bug against the build system then? Or, for example, maybe you need to exclude the
I'm not buying this line of reasoning. It happens to be easy enough to work around this here, but there may come a time where we want to implement something and where it would not be convenient to use this workaround. And these are not normal headers, nor can they be. |
I can try exclude the .inc files but it only helps for the swift package. |
Fails with error: ``` [/absl/numeric/int128.h:1182](https://cs.corp.google.com/piper///depot/google3/Users/kbuilder/Library/Developer/Xcode/DerivedData/workspace_objc_macos_opt_native-auypnimqokfdevhekumkyzytzaba/SourcePackages/checkouts/abseil-cpp-SwiftPM/absl/numeric/int128.h?l=1182&ws&snapshot=0):1: error: redundant #include of module 'abseil' appears within namespace 'absl::lts_20240722' [-Wmodules-import-nested-redundant] #include "absl/numeric/int128_have_intrinsic.inc" // IWYU pragma: export ^ /[Users/kbuilder/Library/Developer/Xcode/DerivedData/workspace_objc_macos_opt_native-auypnimqokfdevhekumkyzytzaba/SourcePackages/checkouts/abseil-cpp-SwiftPM/absl/numeric/int128.h:557](https://cs.corp.google.com/piper///depot/google3/Users/kbuilder/Library/Developer/Xcode/DerivedData/workspace_objc_macos_opt_native-auypnimqokfdevhekumkyzytzaba/SourcePackages/checkouts/abseil-cpp-SwiftPM/absl/numeric/int128.h?l=557&ws&snapshot=0):1: note: namespace 'absl::lts_20240722' begins here ABSL_NAMESPACE_BEGIN ^ ``` ref: abseil/abseil-cpp#1861 Closes #39139 COPYBARA_INTEGRATE_REVIEW=#39139 from HannahShiSFB:disable-swift-sample-build d48d58f PiperOrigin-RevId: 743246346
This fixes the modules-import-nested-redundant error in grpc swift build
CC: @sampajano