Skip to content

Commit df0dfba

Browse files
committed
[tools] Fix null c standard with cpp build
The standards were Int instead of Null<Int>, 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’?
1 parent 028bca6 commit df0dfba

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎tools/hxcpp/File.hx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ class File
2222
public var mFilterOut:String;
2323
public var mEmbedName:String;
2424
public var mScramble:String;
25-
public var mCStandard:Int;
26-
public var mCxxStandard:Int;
27-
public var mObjCStandard:Int;
28-
public var mObjCxxStandard:Int;
25+
public var mCStandard:Null<Int>;
26+
public var mCxxStandard:Null<Int>;
27+
public var mObjCStandard:Null<Int>;
28+
public var mObjCxxStandard:Null<Int>;
2929
static public var mDependMutex = new Mutex();
3030

3131
public function new(inName:String, inGroup:FileGroup)

0 commit comments

Comments
 (0)