From aa86334bfa2cbc0a990652cbeaaa936999812591 Mon Sep 17 00:00:00 2001 From: Tobiasz Laskowski Date: Tue, 29 Sep 2026 21:51:25 +0100 Subject: [PATCH] Fix null c standard with cpp build tool MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The standards were Int instead of Null, so if they were unset (null) they would be coerced to 0 on the c++ build of the build tool, since it is a static target. This resulted in the following error when compiling the hxcpp runtime: g++: error: unrecognized command-line option ‘-std=c0’; did you mean ‘-std=c90’? --- tools/hxcpp/File.hx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/hxcpp/File.hx b/tools/hxcpp/File.hx index 525beb276..b611f4e06 100644 --- a/tools/hxcpp/File.hx +++ b/tools/hxcpp/File.hx @@ -22,10 +22,10 @@ class File public var mFilterOut:String; public var mEmbedName:String; public var mScramble:String; - public var mCStandard:Int; - public var mCxxStandard:Int; - public var mObjCStandard:Int; - public var mObjCxxStandard:Int; + public var mCStandard:Null; + public var mCxxStandard:Null; + public var mObjCStandard:Null; + public var mObjCxxStandard:Null; static public var mDependMutex = new Mutex(); public function new(inName:String, inGroup:FileGroup)