aboutsummaryrefslogtreecommitdiff
path: root/src/build_settings.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #3141 from laytan/add-all-packages-flag-for-testsgingerBill2024-01-311-0/+1
|\ | | | | Add `odin test -all-packages` to be able to test an entire project
| * Add `odin test -all-packages` to be able to test an entire projectLaytan Laats2024-01-261-0/+1
| |
* | Freestanding - default to nil allocator; wasm - default to panic allocatorgingerBill2024-01-281-1/+10
| |
* | `-default-to-panic-allocator`gingerBill2024-01-281-1/+3
| |
* | Move `core:runtime` to `base:runtime`; keep alias aroundgingerBill2024-01-281-1/+21
|/
* Expand -subsystem option on WindowsJeroen van Rijn2024-01-181-10/+40
| | | | | | | | W:\Odin>odin run sketch.odin -file -subsystem:foo Invalid -subsystem string, got oo. Expected one of: BOOT_APPLICATION, CONSOLE (default), EFI_APPLICATION, EFI_BOOT_SERVICE_DRIVER, EFI_ROM, EFI_RUNTIME_DRIVER, NATIVE, POSIX, WINDOWS (or WINDOW), WINDOWSCE We now also set the constant ODIN_WINDOWS_SUBSYSTEM, which is "" for non-Windows targets.
* Add WINDOWS_SUBSYSTEM constant boolJeroen van Rijn2024-01-181-10/+9
| | | | true when -subsystem:windows for Windows targets, false otherwise.
* Use default calling convention for arm target for now - not 100% sure this ↵codename-irvin2024-01-161-3/+2
| | | | is correct
* Add freestanding aarch64 targetcodename-irvin2024-01-151-1/+9
|
* src: `enable_target_feature` should add features, not overwriteYawning Angel2024-01-071-1/+3
| | | | | | | | | | | | | | | | `llvm_features` being empty is the default state, and implies the presence of certain features. Previously if any target features were explicitly enabled by the `enable_target_feature` attribute, they were added comma separated to `llvm_features`. For example: `lzcnt,popcnt,...,sse4.2,sse` This was causing LLVM to try to target a CPU that *ONLY* has the explicitly enabled features. This now will prefix explicitly enabled features with a `+`, and preserve the existing `llvm_features` string by appending to it if it is set.
* Clean up error block usagegingerBill2024-01-051-0/+1
|
* Add `-obfuscate-source-code-locations`gingerBill2023-12-131-0/+2
|
* Facored out `get_default_microarchitecture`Jeroen van Rijn2023-11-101-7/+6
| | | | Moved `generic` -> `x86-64-v2` selection into its own procedure so that `llvm_backend.cpp` and `main.cpp` can share the same logic.
* Add -microarch:?Jeroen van Rijn2023-11-101-2/+17
|
* Force dynamic map calls on non-windows targetsgingerBill2023-10-291-2/+4
|
* Fix static map calls and default to them!gingerBill2023-10-271-1/+1
|
* Remove `-vet-extra`gingerBill2023-09-301-5/+1
|
* Update src/build_settings.cppgingerBill2023-09-271-1/+1
| | | Co-authored-by: Laytan Laats <laytanlaats@hotmail.com>
* Add attributes for sanitize_memory and sanitize_threadgingerBill2023-09-211-1/+30
|
* Add `-o:aggressive` for LLVM 17gingerBill2023-09-211-1/+1
|
* Support `-sanitize:<string>` for `address`, `memory`, `thread` for LLVM 17gingerBill2023-09-211-0/+16
|
* Add experimental `-subtarget:ios`gingerBill2023-08-081-1/+30
|
* Merge branch 'master' into tildegingerBill2023-08-031-3/+39
|\
| * Remove `-strict-style-init-only`gingerBill2023-08-011-1/+0
| |
| * Add `-vet-style` and `-vet-semicolon`gingerBill2023-08-011-0/+6
| |
| * Improve `//+vet`; remove `using` in many places; add `//+vet !using-stmt` ↵gingerBill2023-07-311-4/+4
| | | | | | | | where necessary
| * Add separate `-vet` flags; `-vet-using-*` flags; `//+vet` file flagsgingerBill2023-07-311-2/+33
| |
* | Add `-tilde` for working on the new compilergingerBill2023-07-081-0/+2
|/
* Rename `ODIN_DISALLOW_RTTI` to `ODIN_NO_RTTI`; Remove dead command line flagsgingerBill2023-06-121-3/+3
|
* Fix endianness for wasm64p32gingerBill2023-06-071-4/+2
|
* Merge branch 'master' into separate-int-word-sizesgingerBill2023-06-061-3/+21
|\
| * Merge pull request #2479 from Naught00/masterJeroen van Rijn2023-05-191-3/+21
| |\ | | | | | | Change default executable extension for non-Windows platforms
| | * Fix accidental check inMark Naughton2023-05-191-8/+0
| | |
| | * Add write permissions check on output folderMark Naughton2023-05-191-1/+18
| | |
| | * Fix single-file package caseMark Naughton2023-05-181-0/+7
| | |
| | * Simplify extension addition logicMark Naughton2023-04-261-9/+2
| | |
| | * Use buildpath instead of init_filenameMark Naughton2023-04-261-1/+1
| | |
| | * Fix .bin not being applied for relative directoryMark Naughton2023-04-261-1/+2
| | |
| | * Add .bin extension in extra caseMark Naughton2023-04-241-3/+9
| | |
| | * Use last element for directory collision checkMark Naughton2023-04-231-1/+1
| | |
| | * Add .bin extension the case of a collisionMark Naughton2023-04-231-0/+4
| | | | | | | | | | | | | | | | | | The directory name is used to determine the executable name. In the case that the directory and output executable are in conflict, a .bin extension is added.
| | * Change default executable extensionMark Naughton2023-04-231-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Putting a program into your path on a UNIX system with a file extension means that you have to type the extension out for every invocation of the program. A better default is to have no extension at all since most people will end up removing it anyway. This change does not affect Windows since the .exe extension is set after the default extension if compiling on Windows.
* | | Merge branch 'master' into separate-int-word-sizesgingerBill2023-05-031-3/+7
|\| |
| * | When using `-debug`, default to `-o:none` unless explicitly specifiedgingerBill2023-05-021-3/+7
| |/
* | Rename `word_size` to `ptr_size` internally to make it clearergingerBill2023-04-201-9/+9
| |
* | Begin work on new pseudo-architecture: wasm64p32gingerBill2023-04-201-13/+40
| |
* | Begin work on separating int and word sizes (i.e. `size_of(int)` might not ↵gingerBill2023-04-201-17/+27
|/ | | | equal `size_of(uintptr)`)
* Add `-max-error-count:<integer>`gingerBill2023-04-041-0/+16
|
* Merge pull request #2380 from flysand7/mastergingerBill2023-03-141-0/+1
|\ | | | | Add -no-thread-local flag
| * rename -no-tls to -no-thread-localbumbread2023-03-141-1/+1
| |