From f52d81206ebbe2e59db541885963d6e1584e90d3 Mon Sep 17 00:00:00 2001 From: Oliver Medhurst Date: Tue, 17 Dec 2024 15:20:32 +0000 Subject: [PATCH] compiler: use O3 not Ofast --- compiler/index.js | 2 +- package.json | 2 +- runner/index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/index.js b/compiler/index.js index fb1c3e35..b840fe5c 100644 --- a/compiler/index.js +++ b/compiler/index.js @@ -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 ]; diff --git a/package.json b/package.json index ced2f10a..af71aab2 100644 --- a/package.json +++ b/package.json @@ -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": {}, diff --git a/runner/index.js b/runner/index.js index 4cd0c0e3..1eee2948 100644 --- a/runner/index.js +++ b/runner/index.js @@ -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') {