aboutsummaryrefslogtreecommitdiff
path: root/build_odin.sh
Commit message (Collapse)AuthorAgeFilesLines
...
* Support LLVM >=17.0.1 on Darwin and Linuxjcmdln2023-10-111-2/+4
|
* Fix dropped "dev-" prefix from version tagHasan Yasin Ozturk2023-07-311-1/+1
| | | | | In commit c3a31666, "dev-" prefix was dropped unintentionally. This commit fixes that.
* Set version date to commit date instead of build dateHasan Yasin Ozturk2023-07-311-4/+7
| | | | | | | Fixes #2688 This commit updates `build_odin.sh` and `build.bat` so that date of the commit is used for the version tag, instead of the build time.
* Update build_odin.sh to better support optimisation on Arm CPUsSimon Rowe2023-05-281-1/+8
| | | | | | | | | | | | | | | | | | The `build_odin` flags include the option `release-native`. The current `EXTRAFLAGS` set however don't work for Arm CPUs as they dont support `-march=native`. Added code to detect CPU and either set the preferred flag for Arm CPUs (ie `-mcpu=native`) or keep the current default. Information on preferred Arm CPU optimisation flag taken from here: https://community.arm.com/arm-community-blogs/b/tools-software-ides-blog/posts/compiler-flags-across-architectures-march-mtune-and-mcpu Changes tested on an Apple Silicon M1 CPU (arm64) using HomeBrew installed llvm as follows: ``` Homebrew clang version 14.0.6 Target: arm64-apple-darwin22.5.0 Thread model: posix InstalledDir: /opt/homebrew/opt/llvm@14/bin ```
* Revert "Fix: header directories in Unix build script"Colin Davidson2023-05-081-3/+1
|
* add redirect to /dev/nullJan Prukner2023-04-251-1/+1
|
* Fix which command checkJan Prukner2023-04-241-1/+1
| | | | | | The function have_witch failed because which is an alias in my environment. This change makes the function work even if which command is an alias.
* Fix: header directories in Unix build scriptPeter Lef2023-04-161-1/+3
|
* build_odin.sh: fix typo introduced in detection of llvm-config-11-64Meghan2023-04-121-1/+1
| | | appeared in https://github.com/odin-lang/Odin/commit/b22d71a74e5cd9ad6f810a2a7d155523bb7c0782
* Fix: `Unable to find LLVM-config` on UbuntuTryAngle2023-04-111-0/+2
| | | appends a check for llvm-config-14 on linux
* Only try to parse git hash if .git is presentJeroen van Rijn2023-04-111-2/+7
| | | | Closes 2451
* build_odin.sh - fix build on darwin arm64kamil-beker2023-04-081-11/+13
| | | | | | | | Done: - use ARCH variable properly - refactor have_which() to use POSIX compliant command - ref - use command instead of which for the same reason as above. - run shfmt for consistency.
* move to work-stealing threadpoolColin Davidson2022-12-281-1/+1
|
* Panic if LLVM > 14.Jeroen van Rijn2022-10-271-0/+12
|
* Detect `which` and complain if not found.Jeroen van Rijn2022-10-251-0/+8
|
* Change llvm-copy-to-zip path to use real one, instead of linkFelipe Lavratti2022-09-281-1/+5
|
* Changed nightly build for linux to include the llvm library fileFelipe Lavratti2022-09-211-1/+2
|
* FreeBSD: Autodetect LLVM version.Jeroen van Rijn2022-09-031-1/+13
|
* fix some typoscui fliter2022-08-051-1/+1
| | | | Signed-off-by: cui fliter <imcusg@gmail.com>
* Merge pull request #1876 from mohd-akram/build-config-optsgingerBill2022-08-011-21/+33
|\ | | | | Allow passing config options to build script
| * Allow passing config options to build scriptMohamed Akram2022-07-081-21/+33
| |
* | Updated shabang in build_odin.sh so it runs on OpenBSDRonald19852022-07-221-1/+1
|/ | | | This change doesn't break compatibility on Linux or Darwin
* Revert "Merge pull request #1702 from Kelimion/filename_generation"Jeroen van Rijn2022-04-241-2/+2
| | | | | This reverts commit a40a53b10447c9223c24cccf565a95f1773d3922, reversing changes made to 5422a3b17eae821df4adf869960995e922eb0e76.
* Compiler: Add early error for output path being a directory.Jeroen van Rijn2022-04-241-2/+2
| | | | | | | | | | | | - 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.
* Give build/run/check/test/doc a `-file` flag.Jeroen van Rijn2022-04-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A package has canonically always been a directory, but odin allowing you to build a single-file package confused newcomers who didn't understand why they could then not access variables and procedures from another file in the same directory. This change disallows building single-file packages by default, requiring the `-file` flag to acknowledge you understand the nuance. `-help` for these commands also clarifies the difference. ``` W:\Odin>odin build -help odin is a tool for managing Odin source code Usage: odin build [arguments] build Compile directory of .odin files as an executable. One must contain the program's entry point, all must be in the same package. Use `-file` to build a single file instead. Examples: odin build . # Build package in current directory odin build <dir> # Build package in <dir> odin build filename.odin -file # Build single-file package, must contain entry point. Flags -file Tells `odin build` to treat the given file as a self-contained package. This means that `<dir>/a.odin` won't have access to `<dir>/b.odin`'s contents. ``` ``` W:\Odin>odin run examples\demo\demo.odin ERROR: `odin run` takes a package as its first argument. Did you mean `odin run examples\demo\demo.odin -file`? The `-file` flag tells it to treat a file as a self-contained package. ```
* core out Makefile, add freebsd buildingColin Davidson2022-03-141-0/+10
|
* normalize version parserColin Davidson2022-03-091-1/+1
|
* lower minimum llvm versionColin Davidson2022-03-091-1/+1
|
* more build tweaks?Colin Davidson2022-03-091-0/+1
|
* refix make, adjust build for CI weirdnessColin Davidson2022-03-091-6/+10
|
* Try to find llvm-config-11 on goofy misconfigured CI boxColin Davidson2022-03-091-0/+9
|
* clean up osx semver handling in buildColin Davidson2022-03-091-3/+5
|
* add handling for too many argsColin Davidson2022-03-091-0/+2
|
* Cleanup build mode selectionColin Davidson2022-03-091-21/+22
|
* only build odin for report when necessaryColin Davidson2022-03-091-2/+5
|
* more spacing issuesColin Davidson2022-03-091-1/+1
|
* Fix wonky copied space issuesColin Davidson2022-03-091-18/+18
|
* Add initial cut of build scriptColin Davidson2022-03-091-0/+118