base commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
|||||||
|
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
|
||||||
|
|
||||||
|
cc_binary(
|
||||||
|
name = "run",
|
||||||
|
srcs = [
|
||||||
|
"hello.c",
|
||||||
|
"bye.c",
|
||||||
|
"my_functions.h",
|
||||||
|
],
|
||||||
|
)
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
module(
|
||||||
|
name = "my_project",
|
||||||
|
)
|
||||||
|
|
||||||
|
bazel_dep(
|
||||||
|
name = "rules_cc",
|
||||||
|
version = "0.2.25",
|
||||||
|
)
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include "my_functions.h"
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
int x = 0;
|
||||||
|
x = retval(1);
|
||||||
|
printf("Hello World %i\n",x);
|
||||||
|
}
|
||||||
|
|
||||||
Executable
+1
@@ -0,0 +1 @@
|
|||||||
|
bazel build //:run
|
||||||
Reference in New Issue
Block a user