- [NEW] Ara també compila arxius *.c
This commit is contained in:
3
main.cpp
3
main.cpp
@@ -274,7 +274,8 @@ int main(int argc, char *argv[])
|
|||||||
for (const auto & entry : std::filesystem::directory_iterator(path))
|
for (const auto & entry : std::filesystem::directory_iterator(path))
|
||||||
{
|
{
|
||||||
std::string source_file = entry.path();
|
std::string source_file = entry.path();
|
||||||
if (getFileExtension(source_file)=="cpp")
|
std::string file_extension = getFileExtension(source_file);
|
||||||
|
if (file_extension=="cpp" || file_extension=="c")
|
||||||
{
|
{
|
||||||
MaybeRecompile(source_file);
|
MaybeRecompile(source_file);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user