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
|
||||
|
||||
platform: platform.c libapp.so
|
||||
$(CC) -O2 -fPIC -fPIE -o $@ $^
|
||||
platform: platform.cc libapp.so
|
||||
$(CXX) -O2 -fPIC -fPIE -o $@ $^
|
||||
|
||||
libapp.so: app.c
|
||||
$(CC) -O2 -fPIC -shared -o $@ $^
|
||||
libapp.so: app.cc
|
||||
$(CXX) -O2 -fPIC -shared -o $@ $^
|
||||
|
||||
clean:
|
||||
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