Skip to content

Commit

Permalink
Consider xctracenorm unsupported if there's no xctrace or PMC is unav…
Browse files Browse the repository at this point in the history
…ailable
  • Loading branch information
fzhinkin committed Mar 23, 2024
1 parent f62a152 commit 5ea9782
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion integration/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ val hasPMC: Boolean by lazy {
commandLine("sysctl", "-n", "hw.cpufamily")
standardOutput = out
}
res.exitValue == 0 && out.toByteArray().decodeToString().lineSequence().first() != "0"
val value = out.toByteArray().decodeToString().lineSequence().first()
res.exitValue == 0 && value.toInt() != 0
} catch (e: ExecException) {
false
}
Expand Down

0 comments on commit 5ea9782

Please sign in to comment.