summaryrefslogtreecommitdiffhomepage
path: root/Builder.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2024-05-10 21:15:30 +0200
committerRoland Reichwein <mail@reichwein.it>2024-05-10 21:15:30 +0200
commita7e016c2c633667b561a0f26ebde88cb26571d1c (patch)
tree7c66727de7022d5d962448be365dd059bb0ecac1 /Builder.cpp
parentbfdb4e9d2cfc7890c5f194e670039fa76c391330 (diff)
Build static and dynamic libs
Diffstat (limited to 'Builder.cpp')
-rw-r--r--Builder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Builder.cpp b/Builder.cpp
index e74809b..cc756f2 100644
--- a/Builder.cpp
+++ b/Builder.cpp
@@ -315,7 +315,7 @@ void Builder::build_file(const fs::path& p) {
if (p.extension() == ".o") {
// compile
fs::path source_file{get_compile_unit_source_from_object(p)};
- command = _lang.getCompileCommand(p, source_file, include_paths_of_object(p));
+ command = _lang.getCompileCommand(p, source_file, target_from_object(p), include_paths_of_object(p));
} else {
// link
std::vector<fs::path> objects{dependencies_of(p)};