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}
)
## 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/>.
*/
#include "Runtime.h"
#include "Runtime.hpp"
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <cstdio>
#include <cstdlib>
#include <cassert>
void __Monicelli_main();