internal/build:compile with c mode,when c file

This commit is contained in:
luoliwoshang
2025-06-12 11:52:41 +08:00
parent 9001cdb8f2
commit 93197e7621
20 changed files with 20 additions and 50 deletions

View File

@@ -6,8 +6,6 @@ typedef union
long long ll;
} castUnion;
extern "C" {
double llgoToFloat64(long long v)
{
castUnion k;
@@ -35,5 +33,3 @@ int llgoFromFloat32(float v)
k.f = v;
return k.v;
}
}

View File

@@ -19,7 +19,7 @@ package bitcast
import _ "unsafe"
const (
LLGoFiles = "_cast/cast.cpp"
LLGoFiles = "_cast/cast.c"
LLGoPackage = "link"
)