base commit

This commit is contained in:
2026-09-23 01:50:30 -07:00
commit 710bd2967e
5 changed files with 33 additions and 0 deletions
+10
View File
@@ -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",
],
)
+8
View File
@@ -0,0 +1,8 @@
module(
name = "my_project",
)
bazel_dep(
name = "rules_cc",
version = "0.2.25",
)
+5
View File
@@ -0,0 +1,5 @@
#include <stdio.h>
int retval(int inputval) {
return inputval;
}
+9
View File
@@ -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
View File
@@ -0,0 +1 @@
bazel build //:run