Fix compile erro by lack of map file (#12837)

This commit is contained in:
Theo Arends 2021-08-09 10:58:37 +02:00
parent 7b98582d40
commit 0c30aeeebc

View File

@ -14,6 +14,8 @@ def map_gzip(source, target, env):
# create string with location and file names based on variant
bin_file = "{}map{}{}.map".format(OUTPUT_DIR, os.path.sep, variant)
if os.path.isfile(bin_file):
gzip_file = "{}map{}{}.map.gz".format(OUTPUT_DIR, os.path.sep, variant)
# check if new target map files exist and remove if necessary