Comments (1)
This is working for me but it may but removes the platform check that would prevent building on MacOS
diff --git a/build.zig b/build.zig
index 263a1f9..b2622e7 100644
--- a/build.zig
+++ b/build.zig
@@ -7,15 +7,14 @@ pub fn build(b: *std.Build) void {
const exe = b.addExecutable(.{
.name = "poop",
.root_source_file = .{ .path = "src/main.zig" },
+ .strip = b.option(bool, "strip", "strip the binary") orelse switch (optimize) {
+ .Debug, .ReleaseSafe => false,
+ .ReleaseFast, .ReleaseSmall => true,
+ },
.target = target,
.optimize = optimize,
});
- exe.strip = b.option(bool, "strip", "strip the binary") orelse switch (optimize) {
- .Debug, .ReleaseSafe => false,
- .ReleaseFast, .ReleaseSmall => true,
- };
-
b.installArtifact(exe);
const release = b.step("release", "make an upstream binary release");
@@ -26,12 +25,9 @@ pub fn build(b: *std.Build) void {
const rel_exe = b.addExecutable(.{
.name = "poop",
.root_source_file = .{ .path = "src/main.zig" },
- .target = std.zig.CrossTarget.parse(.{
- .arch_os_abi = target_string,
- }) catch unreachable,
+ .target = target,
.optimize = .ReleaseSafe,
});
- rel_exe.strip = true;
const install = b.addInstallArtifact(rel_exe, .{});
install.dest_dir = .prefix;
from poop.
Related Issues (20)
- figure out how to make the code less janky with regards to formatted printing HOT 2
- mad max mode
- do something with cache references and cache misses together
- blank line between benchmarks and summary section
- detect when perf is permission denied and give the user a helpful message HOT 5
- add an option to show ratio instead of percent delta (possibly by default) HOT 2
- machine-friendly output format HOT 1
- integer overflow when trying to print result of subsequent benchmark HOT 1
- Options that can make poop exit with error code
- Use some max number of sigfigs HOT 1
- reached unreachable code (in VM) HOT 5
- install poop HOT 2
- Build Instructions are poor HOT 1
- flag for setting command line parameters
- look into CPU shielding HOT 2
- Add `--export`: get summary statistics and timings
- Why the difference between the counter values reported by poop and perf-stat? HOT 1
- Zig standard library tests deadlock when run via `poop`
- `PILE OF POO` may not be available on some systems HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poop.