Print "ANSI targets are deprecated" warning if Unicode/Target attributes are never used.

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7077 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2019-02-02 20:25:07 +00:00
parent cb151c88e6
commit b9c8d57bb2
2 changed files with 6 additions and 0 deletions

View file

@ -416,6 +416,7 @@ void CEXEBuild::initialize(const TCHAR *makensis_path)
tstring uninst = stubs_dir + PLATFORM_PATH_SEPARATOR_STR + _T("uninst");
uninstaller_icon = load_icon_file(uninst.c_str());
changed_target = false;
}
@ -2568,6 +2569,8 @@ int CEXEBuild::write_output(void)
RET_UNLESS_OK( check_write_output_errors() );
has_called_write_output=true;
if (!changed_target && !build_unicode)
warning(DW_GENERIC_DEPRECATED, _T("ANSI targets are deprecated"));
#ifdef NSIS_CONFIG_PLUGIN_SUPPORT
RET_UNLESS_OK( add_plugins_dir_initializer() );
@ -3898,6 +3901,7 @@ int CEXEBuild::change_target_architecture(TARGETTYPE tt)
#ifdef NSIS_CONFIG_PLUGIN_SUPPORT
if (PS_OK == ec) ec = initialize_default_plugins(true);
#endif
changed_target = true;
return ec;
}