mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
Change test app to C++ for better check on naming
This commit is contained in:
parent
97997acffa
commit
d54dca73b4
5 changed files with 17 additions and 17 deletions
|
@ -1,10 +1,10 @@
|
||||||
all: platform
|
all: platform
|
||||||
|
|
||||||
platform: platform.c libapp.so
|
platform: platform.cc libapp.so
|
||||||
$(CC) -O2 -fPIC -fPIE -o $@ $^
|
$(CXX) -O2 -fPIC -fPIE -o $@ $^
|
||||||
|
|
||||||
libapp.so: app.c
|
libapp.so: app.cc
|
||||||
$(CC) -O2 -fPIC -shared -o $@ $^
|
$(CXX) -O2 -fPIC -shared -o $@ $^
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f platform libapp.so
|
rm -f platform libapp.so
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
void app() { printf("Hello World from the application"); }
|
|
3
linker/tests/app.cc
Normal file
3
linker/tests/app.cc
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
void app() { std::cout << "Hello World from the application" << std::endl; }
|
|
@ -1,9 +0,0 @@
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
void app();
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
printf("Hello World from the platform");
|
|
||||||
app();
|
|
||||||
return 0;
|
|
||||||
}
|
|
9
linker/tests/platform.cc
Normal file
9
linker/tests/platform.cc
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
void app();
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
std::cout << "Hello World from the platform\n";
|
||||||
|
app();
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue