update
This commit is contained in:
parent
75d224d735
commit
3522d452f1
@ -31,10 +31,14 @@ export default class CppBuilder implements Builder{
|
||||
printDebug(command)
|
||||
})
|
||||
});
|
||||
try{
|
||||
(await Promise.all(tasks)).forEach(e=>{
|
||||
printDebug(`stdout:${e.stdout}`)
|
||||
if(e.stderr){printErrorOrDebug(`stderr:${e.stderr}`)}
|
||||
})
|
||||
}catch(e:any){
|
||||
printErrorOrDebug(e.message)
|
||||
}
|
||||
}
|
||||
link = async()=>{
|
||||
printDebug("linking")
|
||||
|
@ -4,5 +4,15 @@ import { addProject } from "../../src/Tools/AddProject.js";
|
||||
// const compiler = new GppCompiler()
|
||||
|
||||
addProject(()=>{
|
||||
return new CppProject("hello").addFiles("main.cpp")
|
||||
const project = new CppProject("hello").addFiles("./hello/main.cpp")
|
||||
project.optimize="fastest"
|
||||
// console.log(project.compiler.compilerVersion)
|
||||
return project
|
||||
})
|
||||
|
||||
addProject(()=>{
|
||||
const project = new CppProject("world")
|
||||
project.addFiles("./world/world.cpp")
|
||||
project.optimize="fastest"
|
||||
return project
|
||||
})
|
Loading…
Reference in New Issue
Block a user