mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 22:58:46 +00:00
Merge branch 'master' of https://github.com/odin-lang/Odin
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
|||||||
|
language: cpp
|
||||||
|
git:
|
||||||
|
depth: false
|
||||||
|
|
||||||
|
os:
|
||||||
|
- linux
|
||||||
|
- osx
|
||||||
|
|
||||||
|
compiler:
|
||||||
|
- clang
|
||||||
|
|
||||||
|
script:
|
||||||
|
- make release
|
||||||
|
- ./odin run examples/demo/demo.odin
|
||||||
|
- ./odin check examples/demo/demo.odin -vet
|
||||||
|
|
||||||
|
notifications:
|
||||||
|
email: false
|
||||||
@@ -13,6 +13,13 @@
|
|||||||
<a href="https://github.com/odin-lang/odin/blob/master/LICENSE">
|
<a href="https://github.com/odin-lang/odin/blob/master/LICENSE">
|
||||||
<img src="https://img.shields.io/github/license/odin-lang/odin.svg">
|
<img src="https://img.shields.io/github/license/odin-lang/odin.svg">
|
||||||
</a>
|
</a>
|
||||||
|
<br>
|
||||||
|
<a href="https://ci.appveyor.com/project/ThisDrunkDane/odin-vf0ap">
|
||||||
|
<img src="https://ci.appveyor.com/api/projects/status/qss6l921c0eu85u6/branch/master?svg=true">
|
||||||
|
</a>
|
||||||
|
<a href="https://travis-ci.org/odin-lang/Odin">
|
||||||
|
<img src="https://travis-ci.org/odin-lang/Odin.svg?branch=master">
|
||||||
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
# The Odin Programming Language
|
# The Odin Programming Language
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
image:
|
||||||
|
- Visual Studio 2017
|
||||||
|
shallow_clone: true
|
||||||
|
|
||||||
|
platform: x64
|
||||||
|
|
||||||
|
install:
|
||||||
|
- cd bin
|
||||||
|
- appveyor DownloadFile https://github.com/odin-lang/Odin/releases/download/llvm-windows/llvm-binaries.zip
|
||||||
|
- 7z x llvm-binaries.zip > nul
|
||||||
|
- cd ..
|
||||||
|
|
||||||
|
build_script:
|
||||||
|
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
|
||||||
|
- ./build_ci.bat
|
||||||
|
|
||||||
|
test_script:
|
||||||
|
- odin run examples/demo/demo.odin
|
||||||
|
- odin check examples/demo/demo.odin -vet
|
||||||
@@ -46,5 +46,4 @@ cl %compiler_settings% "src\main.cpp" ^
|
|||||||
|
|
||||||
del *.obj > NUL 2> NUL
|
del *.obj > NUL 2> NUL
|
||||||
|
|
||||||
:end_of_build
|
:end_of_build
|
||||||
|
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
set exe_name=odin.exe
|
||||||
|
|
||||||
|
set compiler_flags= -nologo -Oi -TP -fp:precise -Gm- -MP -FC -GS- -EHsc- -GR- -O2 -MT -Z7 -DNO_ARRAY_BOUNDS_CHECK
|
||||||
|
set compiler_warnings= ^
|
||||||
|
-W4 -WX ^
|
||||||
|
-wd4100 -wd4101 -wd4127 -wd4189 ^
|
||||||
|
-wd4201 -wd4204 ^
|
||||||
|
-wd4456 -wd4457 -wd4480 ^
|
||||||
|
-wd4512
|
||||||
|
|
||||||
|
set compiler_includes=
|
||||||
|
set libs= ^
|
||||||
|
kernel32.lib
|
||||||
|
|
||||||
|
set linker_flags= -incremental:no -opt:ref -subsystem:console -debug
|
||||||
|
|
||||||
|
set compiler_settings=%compiler_includes% %compiler_flags% %compiler_warnings%
|
||||||
|
set linker_settings=%libs% %linker_flags%
|
||||||
|
|
||||||
|
cl %compiler_settings% "src\main.cpp" ^
|
||||||
|
/link %linker_settings% -OUT:%exe_name% ^
|
||||||
|
|
||||||
+1
-13
@@ -1,24 +1,12 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import "core:fmt"
|
import "core:fmt"
|
||||||
import "core:strconv"
|
|
||||||
import "core:mem"
|
import "core:mem"
|
||||||
import "core:bits"
|
|
||||||
import "core:hash"
|
|
||||||
import "core:math"
|
|
||||||
import "core:math/rand"
|
|
||||||
import "core:os"
|
import "core:os"
|
||||||
import "core:sort"
|
|
||||||
import "core:strings"
|
|
||||||
import "core:types"
|
|
||||||
import "core:unicode/utf16"
|
|
||||||
import "core:unicode/utf8"
|
|
||||||
import "core:c"
|
|
||||||
import "core:runtime"
|
|
||||||
|
|
||||||
when os.OS == "windows" {
|
when os.OS == "windows" {
|
||||||
|
import "core:runtime"
|
||||||
import "core:thread"
|
import "core:thread"
|
||||||
import "core:sys/win32"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@(link_name="general_stuff")
|
@(link_name="general_stuff")
|
||||||
|
|||||||
Reference in New Issue
Block a user