Merge cpu_features build targets into //system_wrappers.
Before this CL, functions declared in cpu_features_wrapper.h where not defined in the same build target, causing brittle builds that might fail at link time if the binary was not depending on //system_wrappers (the target with the definitions), violating [1]. This CL moves everything into //system_wrappers and also moves cpu_features_wrapper.h definitions from C to C++ (in order to be able to add the definitions to a C++ build target like //system_wrappers). [1] - https://webrtc.googlesource.com/src/+/refs/heads/master/style-guide.md#h-cc-pairs Bug: None Change-Id: I5a0009cddb17206b19f2a71eeba722faacc4bcae Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/183380 Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#32039}
This commit is contained in:
committed by
Commit Bot
parent
7f557b46c4
commit
2b242d8fba
@ -13,10 +13,6 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
// List of features in x86.
|
||||
typedef enum { kSSE2, kSSE3, kAVX2 } CPUFeature;
|
||||
|
||||
@ -41,8 +37,4 @@ extern WebRtc_CPUInfo WebRtc_GetCPUInfoNoASM;
|
||||
// values in the above enum definition as a bitmask.
|
||||
extern uint64_t WebRtc_GetCPUFeaturesARM(void);
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // SYSTEM_WRAPPERS_INCLUDE_CPU_FEATURES_WRAPPER_H_
|
||||
|
||||
Reference in New Issue
Block a user