Corrected API based on suggestions and actual function

This commit is contained in:
Hannes Harnisch 2021-05-03 02:37:32 +02:00
parent 83864eecf4
commit 1c6f1eab5b
3 changed files with 11 additions and 11 deletions

View File

@ -1180,8 +1180,8 @@
]]
end
function suite.onCompileAsCppModuleInterface()
compileas 'C++ModuleInterface'
function suite.onCompileAsCppModule()
compileas 'Module'
prepare()
test.capture [[
<ClCompile>
@ -1193,8 +1193,8 @@
]]
end
function suite.onCompileAsCppModulePartitionImplementation()
compileas 'C++ModulePartitionImplementation'
function suite.onCompileAsCppModulePartition()
compileas 'ModulePartition'
prepare()
test.capture [[
<ClCompile>
@ -1207,7 +1207,7 @@
end
function suite.onCompileAsCppHeaderUnit()
compileas 'C++HeaderUnit'
compileas 'HeaderUnit'
prepare()
test.capture [[
<ClCompile>

View File

@ -1699,11 +1699,11 @@
m.element("CompileAs", condition, "CompileAsC")
elseif p.languages.iscpp(cfg.compileas) then
m.element("CompileAs", condition, "CompileAsCpp")
elseif cfg.compileas == "C++ModuleInterface" then
elseif cfg.compileas == "Module" then
m.element("CompileAs", condition, "CompileAsCppModule")
elseif cfg.compileas == "C++ModulePartitionImplementation" then
elseif cfg.compileas == "ModulePartition" then
m.element("CompileAs", condition, "CompileAsCppModuleInternalPartition")
elseif cfg.compileas == "C++HeaderUnit" then
elseif cfg.compileas == "HeaderUnit" then
m.element("CompileAs", condition, "CompileAsHeaderUnit")
end
end

View File

@ -185,9 +185,9 @@
"C++",
"Objective-C",
"Objective-C++",
"C++ModuleInterface",
"C++ModulePartitionImplementation",
"C++HeaderUnit"
"Module",
"ModulePartition",
"HeaderUnit"
}
}