File tree 2 files changed +18
-3
lines changed
2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 92
92
<flag value =" -shared" />
93
93
<flag value =" --target=${ABITRIPLE}${PLATFORM_NUMBER}" />
94
94
95
+ <!-- Build time error, not run time -->
96
+ <flag value =" -Wl,--no-undefined" unless =" HXCPP_ALLOW_UNDEFINED" />
97
+
95
98
<flag value =" -static-libstdc++" />
96
99
<!-- This shows the android link line, which may be so long that it breaks the tool
97
100
https://github.com/HaxeFoundation/hxcpp/pull/1091
Original file line number Diff line number Diff line change @@ -2216,6 +2216,13 @@ class BuildTool
2216
2216
}
2217
2217
}
2218
2218
2219
+ function dumpDefs ()
2220
+ {
2221
+ Sys .println (" Defines:" );
2222
+ for (k in mDefines .keys ())
2223
+ Sys .println (' $k = ${mDefines .get (k )}' );
2224
+ }
2225
+
2219
2226
function parseXML (inXML : XmlAccess ,inSection : String , forceRelative : Bool )
2220
2227
{
2221
2228
for (el in inXML .elements )
@@ -2225,9 +2232,14 @@ class BuildTool
2225
2232
switch (el .name )
2226
2233
{
2227
2234
case " set" :
2228
- var name = substitute (el .att .name );
2229
- var value = substitute (el .att .value );
2230
- mDefines .set (name ,value );
2235
+ if (el .has .name )
2236
+ {
2237
+ var name = substitute (el .att .name );
2238
+ var value = substitute (el .att .value );
2239
+ mDefines .set (name ,value );
2240
+ }
2241
+ else
2242
+ dumpDefs ();
2231
2243
case " unset" :
2232
2244
var name = substitute (el .att .name );
2233
2245
mDefines .remove (name );
You can’t perform that action at this time.
0 commit comments