Corrected API based on suggestions and actual function
This commit is contained in:
parent
83864eecf4
commit
1c6f1eab5b
@ -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>
|
||||
|
@ -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
|
||||
|
@ -185,9 +185,9 @@
|
||||
"C++",
|
||||
"Objective-C",
|
||||
"Objective-C++",
|
||||
"C++ModuleInterface",
|
||||
"C++ModulePartitionImplementation",
|
||||
"C++HeaderUnit"
|
||||
"Module",
|
||||
"ModulePartition",
|
||||
"HeaderUnit"
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user