From 246e7f137f6f9df49c8989bb3326da19769c4f1a Mon Sep 17 00:00:00 2001 From: Valtteri Karesto Date: Tue, 3 May 2022 14:03:02 +0300 Subject: [PATCH] Add compile options to compile function --- state/actions/compileCode.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/state/actions/compileCode.ts b/state/actions/compileCode.ts index 92e32c9..712472b 100644 --- a/state/actions/compileCode.ts +++ b/state/actions/compileCode.ts @@ -38,6 +38,7 @@ export const compileCode = async (activeId: number) => { files: [ { type: "c", + options: state.compileOptions || '-O0', name: state.files[activeId].name, src: state.files[activeId].content, },