wails
                                
                                
                                
                                    wails copied to clipboard
                            
                            
                            
                        启用CGO 之后功能不正常
Description
我启用cgo打包用到的命令 $env:CGO_ENABLED="1";wails build -platform windows/amd64 -clean -o daliTools.exe 这种情况下,打包完成dll没有复制到bin目录下,我手动复制dll到bin目录下,虽然log.Fatal没有报错 同样代码什么都没有改动 ,打包命令仅仅加个-debug ,程序就正常了,能正常访问dll里面的接口,也有信息返回,但是去掉-debug就不行了,是不是正常打包去掉了什么正是我需要的
To Reproduce
1.启用cgo 2.loadDll 3.调用里面的方法
Expected behaviour
dll方法里面返回信息
Screenshots
	dll, err := syscall.LoadDLL("Knx.Sdk.dll")
	if err != nil {
		log.Fatal("DLL 加载失败:", err)
		return
	}
	sdkDll = dll
	// 获取创建隔离线程函数
	createIsolate, err := dll.FindProc("graal_create_isolate")
	if err != nil {
		fmt.Printf("查找 graal_create_isolate 函数失败: %v\n", err)
		return
	}
	// 创建参数结构体
	params := &GraalCreateIsolateParams{
		Version: 4, // 当前版本为4
	}
	// 创建指针用于接收结果
	var isolate *GraalIsolate
	// 调用创建隔离线程函数
	ret, _, err := createIsolate.Call(
		uintptr(unsafe.Pointer(params)),
		uintptr(unsafe.Pointer(&isolate)),
		uintptr(unsafe.Pointer(&thread)),
	)
	if ret != 0 {
		fmt.Printf("创建隔离线程失败: %v\n", err)
		return
	}
	fmt.Printf("隔离线程创建成功\n")
}
### Attempted Fixes
_No response_
### System Details
```shell
# Wails
Version | v2.10.1
# System
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
| OS           | Windows 10 Pro                                                                                   |
| Version      | 2009 (Build: 26100)                                                                              |
| ID           | 24H2                                                                                             |
| Go Version   | go1.24.1                                                                                         |
| Platform     | windows                                                                                          |
| Architecture | amd64                                                                                            |
| CPU          | Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz                                                        |
| GPU 1        | OrayIddDriver Device (Shanghai Best Oray Information Technology Co., Ltd.) - Driver: 17.1.58.818 |
| GPU 2        | Intel(R) HD Graphics 630 (Intel Corporation) - Driver: 24.20.100.6287                            |
| GPU 3        | NVIDIA GeForce GTX 1050 Ti with Max-Q Design (NVIDIA) - Driver: 22.21.13.8554                    |
| Memory       | 32GB                                                                                             |
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
# Dependencies
┌───────────────────────────────────────────────────────┐
| Dependency | Package Name | Status    | Version       |
| WebView2   | N/A          | Installed | 136.0.3240.92 |
| Nodejs     | N/A          | Installed | 22.14.0       |
| npm        | N/A          | Installed | 10.9.2        |
| *upx       | N/A          | Available |               |
| *nsis      | N/A          | Available |               |
|                                                       |
└─────────────── * - Optional Dependency ───────────────┘
# Diagnosis
Optional package(s) installation details:
  - upx : Available at https://upx.github.io/
  - nsis : More info at https://wails.io/docs/guides/windows-installer/
Additional context
No response