Skip to content

Commit e724896

Browse files
committed
Add clang asm.
1 parent 06b8c5f commit e724896

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

cppan.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ local_settings:
4444
cxx_compiler: g++-8
4545
c_flags: -w
4646
cxx_flags: -w
47+
build_dir: build_ninja_gcc
4748

4849
# debug config is not working with ninja,
4950
# so we set cache to false
@@ -459,4 +460,4 @@ projects:
459460
- src/manager
460461
dependencies:
461462
- support
462-
- pvt.cppan.demo.catchorg.catch2: 2
463+
- pvt.cppan.demo.catchorg.catch2: 2

src/driver/cpp/compiler.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,6 +1260,11 @@ void GNUASMCompiler::setSourceFile(const path &input_file, path &output_file)
12601260
setOutputFile(output_file);
12611261
}
12621262

1263+
std::shared_ptr<Program> ClangASMCompiler::clone() const
1264+
{
1265+
return std::make_shared<ClangASMCompiler>(*this);
1266+
}
1267+
12631268
std::shared_ptr<builder::Command> GNUCompiler::getCommand() const
12641269
{
12651270
if (cmd)

src/driver/cpp/compiler.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,11 @@ struct SW_DRIVER_CPP_API GNUASMCompiler : ASMCompiler, GNU,
291291
Version gatherVersion() const override { return GNU::gatherVersion(file); }
292292
};
293293

294+
struct SW_DRIVER_CPP_API ClangASMCompiler : GNUASMCompiler
295+
{
296+
std::shared_ptr<Program> clone() const override;
297+
};
298+
294299
struct SW_DRIVER_CPP_API GNUCompiler : GNU, virtual NativeCompiler,
295300
CommandLineOptions<GNUOptions>
296301
{

0 commit comments

Comments
 (0)