Commit Graph

55 Commits

Author SHA1 Message Date
Laytan Laats
8b98fff98e add debug build message and align more with build.bat
1. if ran without choosing a build type (just `make` or
   `build_odin.sh`), print out a message about it being a debug build
2. Add `make release-native` alongside `make release_native` to align
   with `build_odin.sh release-native`
3. Only run the demo if it is a debug build (just like `build.bat`)
2024-08-08 15:33:40 +02:00
Jeroen van Rijn
d262eda91c Update Makefile 2022-04-26 15:10:31 +02:00
Jeroen van Rijn
63331ef731 Revert "Merge pull request #1702 from Kelimion/filename_generation"
This reverts commit a40a53b104, reversing
changes made to 5422a3b17e.
2022-04-24 19:53:36 +02:00
Jeroen van Rijn
3cab2592c3 Compiler: Add early error for output path being a directory.
- Introduce new `Path` type and an array of build paths on the build context.
- Resolve input and output paths/files early (before parsing).
- Error early if inputs are missing or outputs are directories.
- Plumb new file path generation into linker stage instead of its adhoc method.

TODO:
- Remove more adhoc file path generation in parser and linker stage.
- Make intermediate object file generation use new path system.
- Round out and robustify Path helper functions.
2022-04-24 13:37:26 +02:00
Colin Davidson
34727f99e3 oops, fix report 2022-03-14 05:27:08 -07:00
Colin Davidson
8605833781 core out Makefile, add freebsd building 2022-03-14 05:23:48 -07:00
gingerBill
a882260db6 Merge pull request #1605 from colrdavidson/linux_build
Make llvm-config build more general for linux
2022-03-14 11:39:03 +00:00
Colin Davidson
7adaa4dc2b refix make, adjust build for CI weirdness 2022-03-09 07:15:08 -08:00
Colin Davidson
5eebdebec8 Make llvm-config build more general for linux 2022-03-09 05:09:39 -08:00
Al Hoang
0278ac85a0 update to build for FreeBSD 2022-03-08 23:48:25 -06:00
gingerBill
dd9843aa21 Merge pull request #1557 from semarie/openbsd-support
initial OpenBSD support
2022-02-28 14:23:56 +00:00
Mohamed Akram
ffe17a471d Allow custom LLVM_CONFIG 2022-02-25 19:40:42 +04:00
Sébastien Marie
83523badb7 pass -ldl only on Darwin and Linux 2022-02-25 13:02:12 +00:00
Sébastien Marie
5676c9e7eb initial OpenBSD support 2022-02-25 08:49:25 +00:00
Platin21
8516e2e7e3 Changed match to be arbitrary width
(cant do exact match as we never know how much subversion's llvm does)
2022-01-22 20:50:05 +01:00
Platin21
9bc5b84c4d Removes maybe unsupported versions 2022-01-22 20:40:04 +01:00
Platin21
9c1e1a63a2 Added pattern function so we can match whatever llvm versions we want
Right now we match every version that is 13 something for arm64 on macOS
And for x86 we allow any above 11 and including 11
2022-01-22 20:29:57 +01:00
Platin21
0e06383620 Changed make file so that it allows for multiple LLVM versions instead of a single one on Darwin 2022-01-22 17:34:43 +01:00
Platin21
3e465c7e84 Changes to required llvm version 13 as both 12 and 11 don't work correctly on macOS Apple Silicon 2021-12-19 21:51:51 +01:00
Yawning Angel
ff36bd3d85 build: Support the Fedora LLVM 11 package
Fedora is on LLVM 12, and the backward compatibility package has a
non-standard name for llvm-config.
2021-10-31 20:23:03 +00:00
Jeroen van Rijn
2a7937e2ba Add odin report command to help with bug reports.
Add new Odin command, `odin report`, which prints information helpful to resolving or reporting a bug.

```
W:\Odin> odin report

Where to find more information and get into contact when you encounter a bug:

	Website: https://odin-lang.org
	GitHub:  https://github.com/odin-lang/Odin/issues

Useful information to add to a bug report:

	Odin: dev-2021-10:256bebfe
	OS:   Windows 10 Professional (version: 20H2), build 19042.1266
	CPU:  AMD Ryzen 7 1800X Eight-Core Processor
	RAM:  65469 MiB

W:\Odin>

TODO:
- CPU name on ARM/ARM64
```
2021-10-31 13:48:13 +01:00
Jeroen van Rijn
17d31bfad6 Fix Makefile. 2021-08-28 22:40:38 +02:00
gingerBill
33239324b8 Improve the C++ to be more correct for clang on Windows, still requiring the same disabled warnings as on *nix 2021-08-19 14:44:53 +01:00
gingerBill
b397254696 Rename libtommath.c to libtommath.cpp 2021-07-11 16:33:58 +01:00
gingerBill
9a37d3b6e5 Add -Wno-unused-value 2021-07-11 16:29:51 +01:00
gingerBill
51c4a19234 Fix tab and space issue in Makefile
FUCK DO I HATE Makefile whitespace sensitivity between spaces and tabs
2021-07-11 16:26:21 +01:00
gingerBill
a1a1668dcf Update build.bat and Makefile 2021-07-11 16:23:25 +01:00
gingerBill
460e14e586 Change the compiler's big integer library to use libTomMath
This now replaces Bill's crappy big int implementation
2021-07-11 16:08:16 +01:00
gingerBill
c8b353b6d8 Makefile fix 2021-05-27 14:59:45 +01:00
gingerBill
6a8a31824d Minor change to Makefile 2021-05-27 14:55:12 +01:00
gingerBill
7d304f4e8b Convert tabs to spaces for Makefile (stupid make) 2021-05-27 14:45:57 +01:00
gingerBill
d0f7cf74e9 Add llvm-config version 11 check for Darwin in Makefile 2021-05-11 12:31:56 +01:00
Mikkel Hjortshøj
0e972296a4 Change non-target indentation in Makefile to spaces to fix make error 2021-04-30 22:50:14 +02:00
gingerBill
bee637aef1 Update Makefile for Linux 2021-04-28 16:23:42 +01:00
gingerBill
d5844dfd2a Update llvm-config checking on Linux 2021-04-28 16:07:46 +01:00
Ricardo Silva
02da4d61ae Fix Makefile for OSX 2021-04-28 11:15:05 +01:00
gingerBill
f6d98d2a16 Fix Makefile for macOs 2021-04-27 13:29:14 +01:00
gingerBill
cd1658e56c Update Makefile 2021-04-27 13:14:54 +01:00
gingerBill
af3784ebb6 Add -DODIN_VERSION_RAW to Makefile 2021-04-25 22:19:34 +01:00
gingerBill
66a70b9d27 Remove the need for LLVM_BACKEND_SUPPORT 2021-04-25 19:49:29 +01:00
gingerBill
60a2eaf666 Revert changes to macOS Makefile 2021-04-25 18:04:07 +01:00
gingerBill
ec2db568c1 Update Makefile for macOS to be more "correct" with Linux 2021-04-25 15:57:35 +01:00
gingerBill
fb6288a54e Try specifying the specific libs on Linux 2021-04-25 15:48:54 +01:00
gingerBill
5c26cf9d73 Try llvm-config-11 in the Makefil 2021-04-24 21:58:44 +01:00
gingerBill
cde334ada3 Modify flags in Makefile 2021-04-24 21:03:22 +01:00
gingerBill
2b4010998d Up ci.yml 2021-04-24 20:55:50 +01:00
gingerBill
4272fe5e85 Update Makefile to compile with LLVM C API 2021-04-24 20:46:47 +01:00
Mikkel Hjortshøj
817db70bde [CI] Remove -march for makefile nightly 2020-11-08 01:23:19 +01:00
Mikkel Hjortshoej
ae2fc5830e Add git sha to odin version command 2020-08-23 15:25:19 +02:00
gingerBill
b09297da81 Remove -Wno-writable-strings 2020-01-04 10:59:12 +00:00