mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-30 03:27:33 +08:00
[gen_settings] fix bug when target is not specified (use default list)
This commit is contained in:
@@ -290,7 +290,7 @@ let join_xml_files = fun xml_files ->
|
|||||||
then begin
|
then begin
|
||||||
(* test if the module is loaded or not *)
|
(* test if the module is loaded or not *)
|
||||||
if List.exists (fun n ->
|
if List.exists (fun n ->
|
||||||
let t = ExtXml.attrib_or_default n "target" "" in
|
let t = ExtXml.attrib_or_default n "target" Gen_common.default_module_targets in
|
||||||
Str.string_match (Str.regexp (".*"^target^".*")) t 0
|
Str.string_match (Str.regexp (".*"^target^".*")) t 0
|
||||||
) (Xml.children xml)
|
) (Xml.children xml)
|
||||||
then List.filter (fun t -> Xml.tag t = "settings") (Xml.children xml)
|
then List.filter (fun t -> Xml.tag t = "settings") (Xml.children xml)
|
||||||
|
|||||||
Reference in New Issue
Block a user