Skip to content

Commit f75e6ce

Browse files
committed
Revert "Disable the tracy example for musl"
This reverts commit 6de27b2. Signed-off-by: James Sturtevant <[email protected]>
1 parent a8cb596 commit f75e6ce

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

src/hyperlight_host/Cargo.toml

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

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

120-
# tracy doesn't play well with musl (it does work in cross)
121-
[target.'cfg(not(target_env = "musl"))'.dev-dependencies]
122-
tracing-tracy = "0.11.4"
123-
124-
125121
[build-dependencies]
126122
anyhow = { version = "1.0.99" }
127123
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)