Adding stdlib target to CMake, migrating runtime to C++.

This commit is contained in:
Stefano Sanfilippo 2015-03-08 12:19:06 +01:00
parent 8656d5c761
commit 83a331a9af
3 changed files with 8 additions and 4 deletions

View File

@ -109,3 +109,7 @@ target_link_libraries(mcc
${LLVM_LIBRARIES} ${LLVM_LIBRARIES}
) )
## 6. Build the runtime library too
add_library(mcrt STATIC Runtime.cpp)

View File

@ -17,11 +17,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "Runtime.h" #include "Runtime.hpp"
#include <stdio.h> #include <cstdio>
#include <stdlib.h> #include <cstdlib>
#include <assert.h> #include <cassert>
void __Monicelli_main(); void __Monicelli_main();