Skip to content

Commit 4c188ad

Browse files
committed
Revert "Disable the tracy example for musl"
This reverts commit 6de27b2. Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
1 parent 6371397 commit 4c188ad

2 files changed

Lines changed: 1 addition & 16 deletions

File tree

src/hyperlight_host/Cargo.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ criterion = "0.7.0"
105105
tracing-chrome = "0.7.2"
106106
metrics-util = "0.20.0"
107107
metrics-exporter-prometheus = { version = "0.17.2", default-features = false }
108+
tracing-tracy = "0.11.4"
108109
serde_json = "1.0"
109110
hyperlight-component-macro = { workspace = true }
110111

@@ -116,11 +117,6 @@ windows = { version = "0.62", features = [
116117
[target.'cfg(unix)'.dev-dependencies]
117118
proc-maps = "0.4.0"
118119

119-
# tracy doesn't play well with musl (it does work in cross)
120-
[target.'cfg(not(target_env = "musl"))'.dev-dependencies]
121-
tracing-tracy = "0.11.4"
122-
123-
124120
[build-dependencies]
125121
anyhow = { version = "1.0.99" }
126122
cfg_aliases = "0.2.1"

src/hyperlight_host/examples/tracing-tracy/main.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,17 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
16-
1716
#![allow(clippy::disallowed_macros)]
18-
#[cfg(not(target_env = "musl"))]
1917
use hyperlight_host::sandbox::uninitialized::UninitializedSandbox;
20-
#[cfg(not(target_env = "musl"))]
2118
use hyperlight_host::{GuestBinary, Result};
22-
#[cfg(not(target_env = "musl"))]
2319
use hyperlight_testing::simple_guest_as_string;
24-
#[cfg(not(target_env = "musl"))]
2520
use tracing_subscriber::EnvFilter;
26-
#[cfg(not(target_env = "musl"))]
2721
use tracing_subscriber::layer::SubscriberExt;
2822

29-
#[cfg(target_env = "musl")]
30-
fn main() {
31-
println!("Tracy example isn't tested run on musl");
32-
}
3323
// An example of how to get tracy tracing working with hyperlight.
3424
// Run with:
3525
// TRACY_NO_EXIT=1 RUST_LOG=trace cargo run --package hyperlight-host --example tracing-tracy --profile release-with-debug,
3626
// and then open the `tracy-profiler` GUI, and there should be an option to load the client created by this example.
37-
#[cfg(not(target_env = "musl"))]
3827
fn main() -> Result<()> {
3928
tracing::subscriber::set_global_default(
4029
tracing_subscriber::registry()

0 commit comments

Comments
 (0)