Add -fvisibility=hidden flag to Bazel (#2502)

This commit is contained in:
Bart Louwers
2024-06-13 17:31:23 +02:00
committed by GitHub
parent e755646eae
commit 4f3485f31a
3 changed files with 3 additions and 114 deletions

View File

@@ -98,7 +98,9 @@ MSVC_CPP_FLAGS = [
]
CPP_FLAGS = select({
"//conditions:default": GCC_CLANG_CPP_FLAGS + WARNING_FLAGS["ios"],
"//conditions:default": GCC_CLANG_CPP_FLAGS,
"@platforms//os:ios": GCC_CLANG_CPP_FLAGS + WARNING_FLAGS["ios"] + ["-fvisibility=hidden"],
"@platforms//os:macos": GCC_CLANG_CPP_FLAGS + WARNING_FLAGS["macos"] + ["-fvisibility=hidden"],
"@platforms//os:linux": GCC_CLANG_CPP_FLAGS + WARNING_FLAGS["linux"],
"@platforms//os:windows": MSVC_CPP_FLAGS + WARNING_FLAGS["windows"],
})

View File

@@ -1,67 +0,0 @@
{
"configurations" : [
{
"id" : "5BA24211-C310-4541-954F-761180BB7D62",
"name" : "Configuration 1",
"options" : {
}
}
],
"defaultOptions" : {
"testTimeoutsEnabled" : true
},
"testTargets" : [
{
"skippedTests" : [
"MLNAnnotationViewIntegrationTests",
"MLNAnnotationViewTests",
"MLNAttributionInfoTests",
"MLNClockDirectionFormatterTests",
"MLNCodingTests",
"MLNCompassButtonTests",
"MLNCompassDirectionFormatterTests",
"MLNComputedShapeSourceTests",
"MLNCoordinateFormatterTests",
"MLNDistanceFormatterTests",
"MLNFeatureTests",
"MLNGeometryTests",
"MLNImageSourceTests",
"MLNImageTests",
"MLNLightTest",
"MLNMapAccessibilityElementTests",
"MLNMapCameraTests",
"MLNMapProjectionTests",
"MLNMapSnapshotterTests",
"MLNMapViewContentInsetTests",
"MLNMapViewDelegateIntegrationTests",
"MLNMapViewDirectionTests",
"MLNMapViewGestureRecognizerTests",
"MLNMapViewLayoutTests",
"MLNMapViewPitchTests",
"MLNMapViewScaleBarTests",
"MLNMapViewTests",
"MLNMapViewZoomTests",
"MLNNSDateAdditionsTests",
"MLNNSOrthographyAdditionsTests",
"MLNNSStringAdditionsTests",
"MLNNetworkConfigurationTests",
"MLNOfflinePackTests",
"MLNOfflineRegionTests",
"MLNOfflineStorageTests",
"MLNRendererConfigurationTests",
"MLNResourceTests",
"MLNSourceQueryTests",
"MLNStyleTests",
"MLNTileSetTests",
"MLNVersionTests"
],
"target" : {
"containerPath" : "container:ios.xcodeproj",
"identifier" : "DA2E88501CC036F400F24E7B",
"name" : "test"
}
}
],
"version" : 1
}

View File

@@ -1,46 +0,0 @@
{
"configurations" : [
{
"id" : "BEEEA5EA-93DE-449D-9090-A692034EA702",
"name" : "Configuration 1",
"options" : {
}
}
],
"defaultOptions" : {
"codeCoverage" : {
"targets" : [
{
"containerPath" : "container:ios.xcodeproj",
"identifier" : "DA8847D11CBAF91600AB86E3",
"name" : "dynamic"
}
]
},
"environmentVariableEntries" : [
{
"enabled" : false,
"key" : "MAPBOX_RUN_PENDING_TESTS",
"value" : "YES"
}
],
"language" : "en",
"region" : "US"
},
"testTargets" : [
{
"skippedTests" : [
"MLNMapSnapshotterTests\/testLocalGlyphRendering",
"MLNOfflineStorageTests",
"MLNMapViewContentInsetTests"
],
"target" : {
"containerPath" : "container:ios.xcodeproj",
"identifier" : "DA2E88501CC036F400F24E7B",
"name" : "test"
}
}
],
"version" : 1
}