فهرست منبع

[cpp] Fix hxcpp_api_level check (#11061)

tobil4sk 2 سال پیش
والد
کامیت
132926ff48
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/generators/gencpp.ml

+ 1 - 1
src/generators/gencpp.ml

@@ -7018,7 +7018,7 @@ let write_build_data common_ctx filename classes main_deps boot_deps build_extra
    output_string buildfile "<include name=\"${HXCPP}/build-tool/BuildCommon.xml\"/>\n";
    output_string buildfile build_extra;
    if (Common.defined common_ctx Define.HxcppSmartStings) then
-      output_string buildfile ("<error value=\"Hxcpp is out of date - please update\" unlessApi=\"400\" />\n");
+      output_string buildfile ("<error value=\"Hxcpp is out of date - please update\" unlessApi=\"" ^ api_string ^ "\" />\n");
    output_string buildfile "</xml>\n";
    close_out buildfile;;