00:00
<
pupp >
no, without libc it acts the same way
00:00
<
pupp >
os puts something on stack that closes app
00:00
<
pupp >
it's not really documented anywhere, but seems that it just works
00:01
<
pupp >
some people prefer to not depend on not documented behaviour, I see no reason to not depend on it
00:02
<
andrewrk >
in this case probably exporting WinMainCRTStartup is probably what you want
00:03
<
pupp >
so just replacing WinMain with WinMainCRTStartup will work?
00:04
<
andrewrk >
let me try it
00:04
<
GitHub2 >
zig/master f54aff4 Andrew Kelley: implement io.OutStream.openMode for windows
00:07
<
andrewrk >
I will add a couple lines of code to the compiler to make it work
00:12
<
andrewrk >
pupp, with the change I just pushed it works
00:12
<
GitHub116 >
zig/master fd7654e Andrew Kelley: build-exe allows direct export of WinMainCRTStartup
00:13
<
andrewrk >
however, I noticed that not calling ExitProcess resulted in the process staying alive in task manager
00:15
<
pupp >
I'll check what's up with that tomorrow
00:16
<
andrewrk >
I'm about to do the text color attribute change, will you be around for 10 min to test it?
00:16
<
pupp >
should I rebuild it?
00:17
<
andrewrk >
yes after I push, but I have not pushed yet
00:19
<
pupp >
by the way, it's weird that 32bit exe loads at address 1210000, they usually start at 400000
00:19
<
pupp >
it's sort of tradition.
00:19
<
andrewrk >
I think we can pass a linker flag to change this
00:32
<
andrewrk >
pupp, see if this makes console colors work for you?
00:32
<
GitHub181 >
zig/master ba405ed Andrew Kelley: try harder to emit console colors
00:32
<
andrewrk >
you should be able to do `make install` from the build directory to rebuild
00:42
<
pupp >
it takes him suspiciously long to link Zig.exe
00:43
<
pupp >
I guess I'll have to do it tomorrow after all
00:44
<
pupp >
it generated zig.exe though
00:44
<
pupp >
trying it out
00:44
<
andrewrk >
it links much faster with msvc
00:46
<
pupp >
make finished instantly, make install took forever
00:47
<
pupp >
nah, doesn't run, did something wrong
00:47
<
andrewrk >
take care
01:11
_whitelogger has joined #zig
01:29
hasen_judy has quit [Ping timeout: 258 seconds]
01:36
pupp has quit [Quit: pupp]
02:32
hasen_judy has joined #zig
03:10
hasen_judy has quit [Remote host closed the connection]
03:26
_whitelogger has joined #zig
04:26
cenomla has quit [Quit: cenomla]
05:11
_whitelogger has joined #zig
05:15
hasen_judy has quit [Ping timeout: 258 seconds]
05:23
<
GitHub23 >
zig/master 9c44dd7 Andrew Kelley: disable byval parameters on windows to work around llvm bug...
05:23
<
GitHub23 >
zig/master 55e8bbd Andrew Kelley: std.mem.IncrementingAllocator: check for errors
05:23
<
GitHub23 >
zig/master 8ab5313 Andrew Kelley: implement environment variables for windows
05:25
<
GitHub136 >
zig/master 3b0fe53 Andrew Kelley: fix regression on posix from previous commit
05:35
_whitelogger has joined #zig
06:05
<
GitHub145 >
zig/master 6fe1c31 Andrew Kelley: disable some of the failing tests...
06:14
_whitelogger has joined #zig
07:07
pupp has joined #zig
07:12
hasen_judy has joined #zig
07:12
<
pupp >
Here's how colors are displayed now
07:31
hasen_judy has quit [Ping timeout: 246 seconds]
07:58
hasen_judy has joined #zig
08:38
_whitelogger has joined #zig
08:40
hasen_judy has quit [Remote host closed the connection]
08:45
hasen_judy has joined #zig
09:57
pupp has quit [Quit: pupp]
10:12
hasen_judy has quit [Remote host closed the connection]
10:13
hasen_judy has joined #zig
10:50
hasen_judy has quit [Remote host closed the connection]
12:02
hasen_judy has joined #zig
12:15
hasen_judy has quit [Remote host closed the connection]
12:46
hasen_judy has joined #zig
12:53
hasen_judy has quit [Ping timeout: 255 seconds]
15:10
cenomla has joined #zig
15:28
cenomla has quit [Quit: cenomla]
15:53
cenomla has joined #zig
16:06
pupp has joined #zig
16:12
<
andrewrk >
pupp, wow, interesting. let me try one more thing
16:14
cenomla has quit [Quit: cenomla]
16:16
<
GitHub114 >
zig/master 3c19883 Andrew Kelley: only SetConsoleTextAttribute to do console colors on windows
16:16
<
andrewrk >
pupp, I believe this fixes it ^
16:16
<
andrewrk >
thanks for the report
16:27
cenomla has joined #zig
16:37
cenomla has quit [Quit: cenomla]
16:40
cenomla has joined #zig
16:40
cenomla has quit [Client Quit]
16:50
hasen_judy has joined #zig
16:54
hasen_judy has quit [Ping timeout: 252 seconds]
17:25
<
pupp >
src/os.cpp:976:11: error: unused variable 'chars_written' [-Werror=unused-variable]
17:35
pupp has quit [Quit: pupp]
18:01
pupp has joined #zig
18:02
<
GitHub141 >
zig/master a98373f Andrew Kelley: use correct integer type for windows BOOL
18:03
<
GitHub95 >
zig/master 1fe1e6e Andrew Kelley: mingw build: delete unused variable
18:04
<
andrewrk >
pupp, ^ fixed (I tested the compilation with mingw this time)
18:52
hasen_judy has joined #zig
19:11
hasen_judy has quit [Ping timeout: 252 seconds]
20:00
pupp has quit [Ping timeout: 248 seconds]
20:04
<
GitHub124 >
zig/master bb169a7 Andrew Kelley: fix child process stdio piping behavior on windows
20:12
ofelas has quit [Quit: shutdown -h now]
20:46
<
GitHub79 >
zig/master fcef7c4 Andrew Kelley: fix std.io.InStream for windows...
20:48
<
GitHub26 >
zig/master faf64b5 Andrew Kelley: fix posix from previous commit
21:10
<
GitHub93 >
zig/master fca1d53 Andrew Kelley: std.io: fix bug when writing large buffer
21:47
hasen_judy has joined #zig
21:51
hasen_judy has quit [Ping timeout: 252 seconds]
22:11
_whitelogger has joined #zig
22:29
<
GitHub47 >
zig/master c837ae1 Andrew Kelley: set stdout and stderr to binary mode on windows
23:05
<
GitHub137 >
zig/master f87f980 Andrew Kelley: 16MB stack size when building with msvc...
23:48
hasen_judy has joined #zig
23:52
hasen_judy has quit [Ping timeout: 252 seconds]