We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6638d6 commit 093ebe2Copy full SHA for 093ebe2
2 files changed
runtime/CMakeLists.txt
@@ -0,0 +1,11 @@
1
+cmake_minimum_required(VERSION 3.12)
2
+
3
+project(hlvm-runtime)
4
5
+set(CMAKE_BUILD_TYPE Release)
6
+set(CMAKE_CXX_STANDARD 14)
7
+set(SOURCE_FILES helpers.cpp)
8
9
+#add_executable(runtime main.cpp)
10
11
+add_library(hlvm-runtime STATIC ${SOURCE_FILES})
runtime/helpers.cpp
+#include <string>
+#include <sstream>
+#include <iostream>
+__attribute__ ((visibility ("default"))) const char* number2string(double number) {
+ std::stringstream s;
+ s << number;
+ return s.str().c_str();
+}
0 commit comments