Commit Graph

220 Commits

Author SHA1 Message Date
Aofei Sheng
3b5e8edd37 ssa: fix Builder.Sigsetjmp for Linux
This follows up on #597.
2024-07-29 16:52:24 +08:00
Aofei Sheng
e7d72b6f53 build: fix sigsetjmp issues and ensure required libs on Linux
1. Handle `sigsetjmp` platform differences:
   - Separate `sigsetjmp` linkage to platform-specific files.
   - Use `__sigsetjmp` on Linux to handle `sigsetjmp` being a macro.
   - Maintain original implementation for Darwin.

2. Ensure linking of required libs:
   - Explicitly link against fundamental libs (e.g., libm, libatomic).
   - Address the fact that typical Linux linkers don't link these by
     default.
2024-07-29 11:16:04 +08:00
xushiwei
a5dff9fb15 library: os.ProcessState.String 2024-07-28 23:53:22 +08:00
visualfc
6c7db7ad23 build: patch io.pipe 2024-07-28 17:01:34 +08:00
visualfc
aa55f4dceb internal/build: add io.pipe for overlay 2024-07-27 12:32:33 +08:00
luoliwoshang
18de4e57eb env:fix incorrect extra line breaks & subcmd match 2024-07-23 14:32:44 +08:00
xushiwei
6f82b36962 library os: openFileNolog 2024-07-19 23:19:59 +08:00
xushiwei
f8bacfcc67 Merge pull request #524 from visualfc/sizes
build: fix unsafe.Sizeof for llgo:type C
2024-07-18 06:58:33 +08:00
Aofei Sheng
74012d4869 build(macOS): change full library paths to @rpath 2024-07-17 18:50:13 +08:00
visualfc
830c40440f build: fix unsafe.Sizeof for llgo:type C 2024-07-17 18:49:18 +08:00
Aofei Sheng
afa9a00259 build: fix rpath support on Linux 2024-07-15 23:04:07 +08:00
xushiwei
2fcfac9e84 build: support rpath 2024-07-15 10:13:01 +08:00
xushiwei
cbe190fa70 cpp/llvm; os.Args; build: add llvm.BinDir to PATH 2024-07-15 00:22:10 +08:00
xushiwei
a3ea4798bc build: clFiles support cflags, reuse llvm.Env; cpp/inih: _wrap/reader.cpp 2024-07-13 18:55:09 +08:00
xushiwei
11682e487e c/os: fork/exec 2024-07-12 00:39:16 +08:00
xushiwei
a5ff25b0fe library: c/syscall 2024-07-11 19:11:54 +08:00
xushiwei
d0b57535ed support: internal/oserror, io, io/fs 2024-07-11 18:20:12 +08:00
xushiwei
528add4702 patch library: syscall, os/exec 2024-07-11 18:00:20 +08:00
visualfc
e192f01dc3 build: fix buildpkg 2024-07-11 11:47:11 +08:00
xushiwei
e41da0d697 cl handleTypeDecl: typeBackground 2024-07-09 12:38:34 +08:00
visualfc
22a2cc564f cl: parser llgo:type C 2024-07-09 10:00:31 +08:00
xushiwei
88962f9358 Merge pull request #462 from aofei/build-lla
build: replace precompiled *.lla with local compilation
2024-07-08 17:19:49 +08:00
Aofei Sheng
5bec1729f1 build: replace precompiled *.lla with local compilation
Switching from using precompiled *.lla files to compiling locally during
the build process for better flexibility and maintainability.

Fixes #411
2024-07-08 17:14:43 +08:00
Aofei Sheng
a1cb2a0589 build: ensure GOBIN directory exists before use 2024-07-08 08:57:18 +08:00
visualfc
a9f7cdb630 build: fix link runtime 2024-07-02 18:40:20 +08:00
xushiwei
c20bea50e3 Merge remote-tracking branch 'gop/main' into q 2024-06-30 11:16:53 +08:00
xushiwei
fe18c35dab patch: Clone/Merge 2024-06-28 15:14:30 +08:00
xushiwei
f6ef6abdf1 Merge pull request #424 from aofei/llvm
xtool: utilize llvm-config to find LLVM executables
2024-06-28 13:17:09 +08:00
Aofei Sheng
43a6837e81 xtool: utilize llvm-config to find LLVM executables 2024-06-27 20:27:42 +08:00
xushiwei
48a1384197 patch: fmt, os, runtime, syscall, time 2024-06-26 17:17:10 +08:00
xushiwei
4385ca0966 patch: internal/abi 2024-06-25 14:02:25 +08:00
xushiwei
cd6d4021b1 llgo cmptest (#391) 2024-06-23 00:48:38 +08:00
xushiwei
be0ce57375 build: disable debug info for deps 2024-06-21 15:45:29 +08:00
xushiwei
b204b90ffc build: remove context.verbose 2024-06-21 15:31:18 +08:00
xushiwei
10a47cdbbb build: use unsafe.Slice to reduce memory usage of overlayFiles 2024-06-21 12:43:17 +08:00
xushiwei
67014ae4f8 Merge pull request #384 from xushiwei/q
patch internal/reflectlite; demo: sort.Ints
2024-06-21 11:23:13 +08:00
xushiwei
b93fc3f028 patch internal/reflectlite; demo: sort.Ints 2024-06-21 11:02:28 +08:00
visualfc
79e8921f76 x/build: overlayFiles for fix math on amd64 2024-06-21 07:55:17 +08:00
Li Jie
6d585e88a4 cl: output export file path of package in verbose 2024-06-20 20:13:53 +08:00
xushiwei
a04fb8e7de Merge pull request #371 from xushiwei/q
patch: reflect (reflect.Type)
2024-06-20 17:51:31 +08:00
Aofei Sheng
ebfad05e3f build: remove check for default GOPATH and GOROOT being identical 2024-06-20 17:42:01 +08:00
xushiwei
f8b0a7105b patch: reflect (type) 2024-06-20 14:17:37 +08:00
xushiwei
870dde232a Merge pull request #369 from xushiwei/q
library: strconv
2024-06-20 11:09:43 +08:00
xushiwei
f7d7f81c49 library: strconv 2024-06-20 11:05:43 +08:00
xushiwei
1f04c61482 Merge pull request #368 from xushiwei/q
builtin: real/imag/complex; c/math/cmplx; patch: math/cmplx
2024-06-20 10:31:24 +08:00
xushiwei
de6535b722 builtin: real/imag/complex; c/math/cmplx; patch: math/cmplx 2024-06-20 10:00:47 +08:00
xushiwei
6dd18e4328 Merge pull request #362 from aofei/build
build: set $GOPATH/bin as default GOBIN for Config.BinPath
2024-06-20 08:20:21 +08:00
Aofei Sheng
c46e4453c7 build: set $GOPATH/bin as default GOBIN for Config.BinPath
We should avoid making any changes to GOROOT whenever possible.

Fixes #361

Update internal/build/build.go

Co-authored-by: 张之阳 <51194195+luoliwoshang@users.noreply.github.com>
2024-06-20 08:14:05 +08:00
xushiwei
607deaa3c4 patch: syscall 2024-06-20 02:55:26 +08:00
xushiwei
3c0e321538 patch: io, io/fs, os 2024-06-19 22:21:44 +08:00