Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS support #382

Merged
merged 46 commits into from
Dec 4, 2023
Merged
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
ab7d188
Run github actions tests on macos
Akuli Apr 3, 2023
56a3edb
brew search llvm
Akuli Apr 3, 2023
1d8422c
Disable unrelated stuff for now
Akuli Apr 3, 2023
cee1061
lets try with installing the llvm
Akuli Apr 3, 2023
a40e90c
Lets try adding to path
Akuli Apr 3, 2023
ffc3e15
Lets try passing llvm-config path a bit differently
Akuli Apr 3, 2023
9820b10
Sanity check LLVM version in Makefile
Akuli Apr 3, 2023
3ce687b
use bash
Akuli Apr 3, 2023
d42aed0
Clean up ls commands. Try to enable compare-compilers
Akuli Apr 3, 2023
cdd73a9
Lets just use LLVM 13
Akuli Apr 3, 2023
2c06d74
Lets avoid mapfile? wHAT IS THIS bash version anyway
Akuli Apr 3, 2023
e8eaf5b
Print out bash version
Akuli Apr 3, 2023
2317076
asd
Akuli Apr 3, 2023
ac1760b
Lets try to install bash
Akuli Apr 4, 2023
b1fa1c0
Try to use the newer bash
Akuli Apr 4, 2023
109f1fb
Try install gnu diff
Akuli Apr 4, 2023
6c9ca19
cleanup time
Akuli Apr 4, 2023
596197a
Lets try _NSGetExecutablePath
Akuli Apr 4, 2023
fd225f8
fixening
Akuli Apr 4, 2023
26b4bfa
Lets try something
Akuli Apr 4, 2023
ce50c63
Lets find all da names
Akuli Apr 4, 2023
287ef77
Also find out errno while we're at it
Akuli Apr 4, 2023
e2f4005
create _macos_startup.jou with copy/pasta spaghetti bolognese carbonara
Akuli Apr 4, 2023
07f6e93
bruh
Akuli Apr 4, 2023
f637fc9
ez fix
Akuli Apr 4, 2023
2517606
bruh
Akuli Apr 4, 2023
0db25cc
env
Akuli Apr 5, 2023
bf767e7
Merge remote-tracking branch 'origin/main' into mac-ci
Akuli Dec 3, 2023
f77a686
fix is_macos maybe
Akuli Dec 4, 2023
64b9acd
try thing
Akuli Dec 4, 2023
10cd460
trying lots of stuff
Akuli Dec 4, 2023
3733039
bruh
Akuli Dec 4, 2023
9665c1c
stufsg
Akuli Dec 4, 2023
e92f714
one more?
Akuli Dec 4, 2023
5c9a9b0
MOAR
Akuli Dec 4, 2023
75a6311
apply startup hack
Akuli Dec 4, 2023
9ef78ec
lets try tests!!!
Akuli Dec 4, 2023
f5ef50e
u happy now
Akuli Dec 4, 2023
2d7ebdc
final version if lucky?
Akuli Dec 4, 2023
bf5ad74
last fix?
Akuli Dec 4, 2023
10ff4df
./compare_compilers.sh --fix
Akuli Dec 4, 2023
c8d9474
tab
Akuli Dec 4, 2023
9bd3958
hax go brr
Akuli Dec 4, 2023
55ea98e
macos instructions
Akuli Dec 4, 2023
b2158bd
Apply suggestions from code review
Akuli Dec 4, 2023
8611e35
Update README.md
Akuli Dec 4, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ez fix
Akuli committed Apr 4, 2023
commit f637fc98e3b92b29f7482c904922e94860b7a855
5 changes: 4 additions & 1 deletion tests/should_succeed/compiler_cli.jou
Original file line number Diff line number Diff line change
@@ -6,6 +6,9 @@ import "stdlib/io.jou"
def is_windows() -> bool:
return getenv("OS") != NULL and strstr(getenv("OS"), "Windows") != NULL

def is_macos() -> bool:
return getenv("OSTYPE") != NULL && starts_with(getenv("OSTYPE"), "darwin")

def run_jou(command: byte*) -> void:
if is_windows():
jou_exe = "jou.exe"
@@ -88,7 +91,7 @@ def main() -> int:
system("tmp/tests/jou_executable")

# Compile a GUI program
if not is_windows():
if not is_windows() and not is_macos():
ret = system("./jou -o /dev/null --linker-flags \"-lX11\" examples/x11_window.jou")
if ret != 0:
printf("Compiling failed???\n")