Skip to content

Commit

Permalink
Fix output dest
Browse files Browse the repository at this point in the history
  • Loading branch information
danimal141 committed Dec 1, 2024
1 parent 3938286 commit 3ca8c18
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@

# Project specific
dist/
bin/pgo
*.log
node_modules/
tmp/
*_project_summary.txt
pgo
*.out

!.tool-versions
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,16 @@ The compilation process has two stages:

```bash
# Basic compilation
./pgo build source.pgo
bin/pgo build source.pgo

# Specify output file
./pgo build -o program source.pgo
bin/pgo build -o program source.pgo

# Show compilation process
./pgo build --verbose source.pgo
bin/pgo build --verbose source.pgo

# Output LLVM IR
./pgo build --emit-llvm source.pgo
bin/pgo build --emit-llvm source.pgo
```

### Command-Line Options
Expand Down Expand Up @@ -147,7 +147,7 @@ package main {
Compile and run:
```bash
deno task compile # -> `pgo` command is created
./pgo build hello.pgo
bin/pgo build hello.pgo
./a.out # Outputs: hello
```

Expand Down
Empty file added bin/.gitkeep
Empty file.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"start": "deno run --allow-read --allow-write main.ts",
"test": "deno test --allow-read",
"test:watch": "deno test --watch --allow-read",
"compile": "deno compile --allow-read --allow-write --allow-run -o pgo main.ts && chmod +x pgo",
"compile": "deno compile --allow-read --allow-write --allow-run -o bin/pgo main.ts",
"lint": "deno lint **/*.ts",
"fmt": "deno fmt **/*.ts",
"check": "deno check **/*.ts"
Expand Down

0 comments on commit 3ca8c18

Please sign in to comment.