Improve build instructions generator history.

GitOrigin-RevId: c9730430045a2029efb0002d7ab6b57d9a0518b7
This commit is contained in:
levlam 2020-10-28 22:44:42 +03:00
parent 0a6ec2ce1c
commit 876b6da298

View File

@ -150,13 +150,13 @@ function onLoad(initial) {
language = 'c#';
} else if (language === 'cxx') {
language = 'c++';
} else if (!language) {
language = '';
}
var language_options = document.getElementById('languageSelect').options;
for (var i = 0; i < language_options.length; i++) {
if (language_options[i].text.toLowerCase() === language.toLowerCase()) {
language_options[i].selected = true;
}
language_options[i].selected = language_options[i].text.toLowerCase() === language.toLowerCase();
}
onLanguageChanged(initial || !history.state);
@ -821,10 +821,10 @@ function onOptionsChanged() {
build_command += ' --target install';
}
if (use_msvc) {
if (target === 'C++/CX' || target === 'C++/CLI' || !is_debug_build) {
if (target === 'C++/CLI' || !is_debug_build) {
commands.push(build_command + ' --config Release');
}
if (target === 'C++/CX' || target === 'C++/CLI' || is_debug_build) {
if (target === 'C++/CLI' || is_debug_build) {
commands.push(build_command + ' --config Debug');
}
} else {