Skip to content

Commit

Permalink
upgade compiler dep and, remove shared static this (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
9il authored May 17, 2019
1 parent 081d4ed commit 0c46472
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ See also [output example](https://gist.github.com/9il/66d2f824ca52e1293358b86604
BetterC mode works when compiled with LDC only.

```
dub build --compiler=ldmd2 --build=betterC --build-mode=singleFile --parallel
dub build --compiler=ldmd2 --build-mode=singleFile --parallel
```

## API Features
Expand Down
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ platform: x64
environment:
matrix:
- DC: dmd
DVersion: 2.082.0
DVersion: 2.085.0
arch: x64
- DC: dmd
DVersion: 2.082.0
DVersion: 2.085.0
arch: x86
- DC: ldc
DVersion: '1.10.0'
DVersion: '1.15.0'
arch: x64

matrix:
Expand Down
18 changes: 2 additions & 16 deletions source/cpuid/unified.d
Original file line number Diff line number Diff line change
Expand Up @@ -89,28 +89,13 @@ export
nothrow @nogc
extern(C):

version(D_BetterC)
{
pragma(crt_constructor)
void crt_mir_cpuid_init()
{
mir_cpuid_init();
}
}
else
{
shared static this()
{
mir_cpuid_init();
}
}

/++
Initialize basic CPU information including basic architecture.
It is safe to call this function multiple times.
It calls appropriate basic initialization for each module (`cpuid_x86_any_init` for X86 machines).
+/
version(X86_Any)
pragma(crt_constructor)
void mir_cpuid_init()
{
static if (__VERSION__ >= 2068)
Expand Down Expand Up @@ -328,6 +313,7 @@ void mir_cpuid_init()
}
}
else
pragma(crt_constructor)
void mir_cpuid_init()
{
_cpus._mut = 1;
Expand Down

0 comments on commit 0c46472

Please sign in to comment.