Skip to content

Commit

Permalink
compiler: use O3 not Ofast
Browse files Browse the repository at this point in the history
CanadaHonk committed Dec 17, 2024

Verified

This commit was signed with the committer’s verified signature.
alexrp Alex Rønne Petersen
1 parent d35ac05 commit f52d812
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compiler/index.js
Original file line number Diff line number Diff line change
@@ -243,7 +243,7 @@ export default (code, module = undefined) => {
outFile ??= Prefs.native ? './porffor_tmp' : file.split('/').at(-1).split('.')[0];

let compiler = Prefs.compiler ?? 'clang';
const cO = Prefs._cO ?? 'Ofast';
const cO = Prefs._cO ?? 'O3';

if (compiler === 'zig') compiler = [ 'zig', 'cc' ];
else compiler = [ compiler ];
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "porffor",
"description": "a basic experimental wip aot optimizing js -> wasm engine/compiler/runtime in js",
"version": "0.55.6",
"version": "0.55.7",
"author": "CanadaHonk",
"license": "MIT",
"scripts": {},
2 changes: 1 addition & 1 deletion runner/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
import fs from 'node:fs';
globalThis.version = '0.55.6';
globalThis.version = '0.55.7';

// deno compat
if (typeof process === 'undefined' && typeof Deno !== 'undefined') {

0 comments on commit f52d812

Please sign in to comment.