charmplusplus / charm

The Charm++ parallel programming system. Visit https://charmplusplus.org/ for more information.
Apache License 2.0
206 stars 50 forks source link

Charmc ends up deleting .C/.cpp file in case you forget to specify the output file while compiling #1683

Closed pplimport closed 7 years ago

pplimport commented 7 years ago

Original author: Samarth Kulshreshtha Original issue: https://charm.cs.illinois.edu/redmine/issues/1683


Repro:

  1. touch test.cpp
  2. charmc -o test.cpp

This will end up deleting test.cpp.

Note: g++ does not have this behavior.

mprobson commented 5 years ago

Original date: 2017-09-20 19:52:37


We should catch the lack of input file the way gcc (or similar) does

PhilMiller commented 5 years ago

Original date: 2017-09-25 18:01:37


https://charm.cs.illinois.edu/gerrit/3076 https://github.com/UIUC-PPL/charm/commit/45a157519234246fb3ea9cf5015d2bb9f49661c9