00:29
hasen_judy has joined #zig
00:49
hasen_judy has quit [Ping timeout: 255 seconds]
01:45
<
andrewrk >
puppp: I'll add docs for that tonight and link you to them
02:23
_whitelogger has joined #zig
02:27
cenomla has joined #zig
02:45
hasen_judy has joined #zig
02:50
<
dimenus >
I wonder how Rust searches for the msbuild tools
02:50
hasen_judy has quit [Ping timeout: 258 seconds]
02:54
<
andrewrk >
dimenus, good point. I never looked that up
02:55
<
andrewrk >
where do you have msvc installed to?
02:58
<
dimenus >
nothing funky I spose, just a non-system drive
02:58
<
dimenus >
E:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\lib\x64
03:06
<
dimenus >
andrewrk, rustup detects it so I'm sure it's in there
03:07
<
andrewrk >
dimenus, interesting, good to know
03:07
<
andrewrk >
maybe I'll pop in to the rust-dev irc channel
03:12
<
andrewrk >
looks like there's a registry key
03:15
cenomla has quit [Quit: cenomla]
03:17
<
dimenus >
cool, yeah that definitely has the root tree in my case
03:25
<
andrewrk >
dimenus, yep, good find. I'll do that as part of #539
03:37
dimenus has joined #zig
03:40
puppp has quit [Ping timeout: 240 seconds]
03:46
dimenus has left #zig [#zig]
04:50
_whitelogger has joined #zig
05:14
puppp has joined #zig
05:26
_whitelogger has joined #zig
05:46
achambe has joined #zig
05:48
<
achambe >
andrewrk: I noticed you use nix, what do you have in your configuration.nix to be able to build zig? I'm relatively new to nix, I have clang and cmake, but the libraries are not installed it seems.
05:59
<
achambe >
another question I have, I seem to have read about a c to zig tool
05:59
<
achambe >
but can't find the code
05:59
<
achambe >
am I wrong about that existing?
06:04
puppp has quit [Quit: puppp]
06:31
achamb has joined #zig
06:31
achambe has quit [Quit: Page closed]
06:46
hasen_judy has joined #zig
07:06
hasen_judy has quit [Ping timeout: 252 seconds]
07:56
hasen_judy has joined #zig
08:24
tiehuis has quit [Quit: WeeChat 1.9.1]
09:03
hasen_ju_ has joined #zig
09:07
hasen_ju_ has quit [Ping timeout: 246 seconds]
10:36
hasen_judy has quit [Quit: hasen_judy]
10:56
Kiwii_ has joined #zig
11:01
Kiwii_ has quit [Ping timeout: 260 seconds]
11:31
cenomla has joined #zig
12:49
hasen_judy has joined #zig
13:09
hasen_judy has quit [Ping timeout: 246 seconds]
13:42
<
andrewrk >
hi achamb
13:42
<
andrewrk >
I have a file ~/env/zig.nix and when I build zig I create a nix shell like this: nix-shell ~/env/zig.nix
13:44
<
andrewrk >
achamb, try this: zig parsec --verbose some-file.c
13:44
<
andrewrk >
it's still under development, but it can understand most prototypes and some source translation
13:46
hasen_judy has joined #zig
14:05
<
hasen_judy >
I'm trying to build a minimal sdl2 program
14:06
<
hasen_judy >
The compiler is giving me an error in including SDL2/SDL.h because AvailabilityMacros.h is not found
14:09
<
andrewrk >
hasen_judy, maybe you need to pass a -isystem argument, or if you are using zig build, addCIncludePath
14:10
<
hasen_judy >
ok, I'll look into addCIncludePath
14:14
<
andrewrk >
hasen_judy, hmm I think zig build is missing some API for this
14:14
<
hasen_judy >
hm, I think I found the path for AvailabilityMacros using the locate command
14:15
<
hasen_judy >
so I added it
14:15
<
hasen_judy >
b.addCIncludePath("/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/");
14:16
<
hasen_judy >
but now it says:
14:16
<
hasen_judy >
note: 'stdio.h' file not found
14:16
<
andrewrk >
interesting, we should already have the include path for stdio.h
14:16
<
andrewrk >
but it might give us a clue to manually add that path too
14:17
<
hasen_judy >
FWIW I'm trying the barest minimum code
14:17
<
andrewrk >
yeah I don't think anyone got SDL working out of the box yet
14:17
<
andrewrk >
maybe we should add the framework paths automatically?
14:18
<
hasen_judy >
zig version: 0.1.1.c1642355
14:18
<
hasen_judy >
Earlier today I got the tetris thing working on another mac
14:19
<
hasen_judy >
so I got surprised with the stdio not found just now
14:19
<
andrewrk >
hasen_judy, I'll try getting SDL to work on my mac later tonight and iron out the kinks
14:20
<
andrewrk >
I'm not sure why stdio.h wouldn't be found
14:20
<
hasen_judy >
anyway, I'm trying to run tetris on this mac as well
14:20
<
hasen_judy >
installing dependencies from brew
14:20
<
hasen_judy >
first, libepoxy
14:24
<
hasen_judy >
hm, still getting errors about things that should be standard, I think
14:24
<
andrewrk >
hasen_judy, frameworks?
14:25
<
hasen_judy >
I'm not sure what I have to do to get the right frameworks
14:25
<
hasen_judy >
never actually worked on a C/C++ project on this machine
14:25
<
hasen_judy >
although I managed to get the zig compiler to build
14:25
<
hasen_judy >
so arguably some form of C library is there somewhere
14:26
<
andrewrk >
I think it's not finding libc headers
14:26
<
hasen_judy >
trying `xcode-select --install`
14:26
<
andrewrk >
where is e.g. stdlib.h?
14:26
<
hasen_judy >
even though I have an impression I did run that a long time ago
14:28
<
hasen_judy >
hm, appears to be in places like: /usr/local/Cellar/gcc/7.2.0/include/c++/7.2.0/stdlib.h
14:29
<
hasen_judy >
or /usr/local/Cellar/llvm/5.0.0/include/c++/v1/stdlib.h
14:29
dimenus has joined #zig
14:29
<
andrewrk >
you should be able to add one of those directories
14:30
<
andrewrk >
usually you don't have to because zig is configured with the path hard coded
14:35
<
hasen_judy >
yea I'm not sure what's going on
14:38
<
dimenus >
andrewrk: do you think it's better to add msvc detection in zig code or in the compiler itself?
14:39
<
andrewrk >
dimenus, zig compiler should detect msvc
14:39
<
hasen_judy >
inttypes.h:30:15: note: 'inttypes.h'
14:39
<
hasen_judy >
^ file not found
14:40
<
andrewrk >
I think that's the same thing, can't find inttypes.h from libc
14:41
<
hasen_judy >
ok, I was confused because the file itself is inttypes.hs
14:41
<
hasen_judy >
the error is in /Users/hasenj/lib/zig/include/inttypes.h
14:41
<
hasen_judy >
but the line is #include_next (which I've never seen before)
14:41
<
andrewrk >
hasen_judy, right. clang/zig ship with inttypes.h which include inttypes.h from libc
14:41
<
hasen_judy >
got it
14:41
<
andrewrk >
zig is copying clang's behavior here since we use clang to import .h files
14:47
<
andrewrk >
hasen_judy, ideally you would give zig the path to the libc that was used to compile SDL
14:47
<
andrewrk >
which looks like it was with homebrew
14:48
<
andrewrk >
I'm confused why you don't have stdlib.h in /usr/include
14:48
<
hasen_judy >
for some reason I'm getting ls: /usr/include: No such file or directory
14:48
<
andrewrk >
that seems very odd
14:48
<
hasen_judy >
I'll try rebooting - just in case
14:49
hasen_judy has quit [Remote host closed the connection]
14:53
hasen_judy has joined #zig
14:54
<
tankfeeder >
failed on archlinux
14:54
<
tankfeeder >
recreate zig pkg
14:54
<
tankfeeder >
# zig version
14:54
<
tankfeeder >
0.0.0.4e2a5e6b
14:55
<
tankfeeder >
^^^ last version.
14:55
<
hasen_judy >
still not /usr/include
14:55
<
hasen_judy >
googling a bit, it seems the folder does not exist on mac
14:55
<
andrewrk >
hasen_judy, which macos version? did you upgrade to high sierra?
14:56
<
hasen_judy >
I didn't no update, it's just sierra 10.12.5
14:56
<
hasen_judy >
did not upgrade *
14:56
<
andrewrk >
that's the same as my macbook
14:56
<
dimenus >
tankfeeder: your zig version is actually zig version 0.1.1.c1642355
14:57
<
andrewrk >
tankfeeder, hmm. looks like it needs to -lcurses
14:57
<
dimenus >
what version of llvm/clang are you using?
14:58
<
tankfeeder >
dimenus: llvm 5
14:58
<
tankfeeder >
always worked
14:58
<
tankfeeder >
tieus did zig-git on archlinux
14:59
<
andrewrk >
tankfeeder, llvm-config --system-libs
14:59
<
andrewrk >
does it include -lcurses ?
14:59
<
tankfeeder >
andrewrk: empty output
14:59
<
andrewrk >
I think this is a bug in llvm. We can workaround by adding -lcurses in the AUR
15:00
<
tankfeeder >
i have to ping tiehuis
15:05
<
tankfeeder >
tiehuis pinged.
15:15
<
achamb >
thank you!
15:18
hasen_judy has quit [Remote host closed the connection]
15:38
dimenus has joined #zig
16:58
cenomla has quit [Quit: cenomla]
17:00
hasen_judy has joined #zig
17:06
hasen_judy has quit [Ping timeout: 258 seconds]
17:13
dimenus has joined #zig
17:18
<
dimenus >
andrewrk: sorry to keep asking about msvc, but are you thinking we'll query the registry or go the full route of rust (COM interface)
18:00
<
andrewrk >
dimenus, whatever way is the most correct
18:00
<
andrewrk >
and reliably
18:00
<
andrewrk >
*reliable
18:07
<
dimenus >
com is probably the most correct, time to learn com I guess
18:11
<
andrewrk >
dimenus, godspeed
18:39
hasen_judy has joined #zig
18:43
hasen_judy has quit [Ping timeout: 255 seconds]
19:15
steveno has joined #zig
20:05
steveno has quit [Quit: steveno]
20:40
hasen_judy has joined #zig
20:45
hasen_judy has quit [Ping timeout: 258 seconds]
22:18
hasen_judy has joined #zig
22:32
hasen_judy has quit [Remote host closed the connection]
22:58
cenomla has joined #zig
23:14
hasen_judy has joined #zig
23:48
hasen_judy has quit [Remote host closed the connection]