Browse Source

Update target config after init macros

Rudy Ges 7 months ago
parent
commit
a750fc6289
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/compiler/compiler.ml

+ 1 - 0
src/compiler/compiler.ml

@@ -296,6 +296,7 @@ let do_type ctx mctx actx display_file_dot_path =
 		Some (MacroContext.call_init_macro ctx.com mctx path)
 	) mctx (List.rev actx.config_macros) in
 	enter_stage com CInitMacrosDone;
+	update_platform_config com; (* make sure to adapt all flags changes defined during init macros *)
 	ServerMessage.compiler_stage com;
 
 	let macros = match mctx with None -> None | Some mctx -> mctx.g.macros in