Skip to content

Commit b815f8c

Browse files
authored
Remove -D__building_module(x)=0 workaround. (#13621)
1 parent 87fbb56 commit b815f8c

12 files changed

+120
-132
lines changed

Extension/bin/linux.clang.arm.json

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
{
2-
"defaults": [
3-
"-D__building_module(x)=0",
4-
"-Dunix=1",
5-
"-D__unix__=1",
6-
"-D__linux__=1",
7-
"-D__arm__=1",
8-
"-D__ARM_32BIT_STATE=1",
9-
"-D__PTRDIFF_TYPE__=int",
10-
"-D__SIZE_TYPE__=unsigned int",
11-
"-D__WCHAR_TYPE__=long int"
12-
],
13-
"defaults_op": "merge"
14-
}
1+
{
2+
"defaults": [
3+
"-Dunix=1",
4+
"-D__unix__=1",
5+
"-D__linux__=1",
6+
"-D__arm__=1",
7+
"-D__ARM_32BIT_STATE=1",
8+
"-D__PTRDIFF_TYPE__=int",
9+
"-D__SIZE_TYPE__=unsigned int",
10+
"-D__WCHAR_TYPE__=long int"
11+
],
12+
"defaults_op": "merge"
13+
}

Extension/bin/linux.clang.arm64.json

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
{
2-
"defaults": [
3-
"-D__building_module(x)=0",
4-
"-Dunix=1",
5-
"-D__unix__=1",
6-
"-D__linux__=1",
7-
"-D__aarch64__=1",
8-
"-D__ARM_64BIT_STATE=1",
9-
"-D__PTRDIFF_TYPE__=long int",
10-
"-D__SIZE_TYPE__=long unsigned int",
11-
"-D__WCHAR_TYPE__=int"
12-
],
13-
"defaults_op": "merge"
14-
}
1+
{
2+
"defaults": [
3+
"-Dunix=1",
4+
"-D__unix__=1",
5+
"-D__linux__=1",
6+
"-D__aarch64__=1",
7+
"-D__ARM_64BIT_STATE=1",
8+
"-D__PTRDIFF_TYPE__=long int",
9+
"-D__SIZE_TYPE__=long unsigned int",
10+
"-D__WCHAR_TYPE__=int"
11+
],
12+
"defaults_op": "merge"
13+
}

Extension/bin/linux.clang.x64.json

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
{
2-
"defaults": [
3-
"-D__building_module(x)=0",
4-
"-Dunix=1",
5-
"-D__unix__=1",
6-
"-D__linux__=1",
7-
"-D__x86_64=1",
8-
"-D__x86_64__=1",
9-
"-D__PTRDIFF_TYPE__=long int",
10-
"-D__SIZE_TYPE__=long unsigned int",
11-
"-D__WCHAR_TYPE__=int"
12-
],
13-
"defaults_op": "merge"
14-
}
1+
{
2+
"defaults": [
3+
"-Dunix=1",
4+
"-D__unix__=1",
5+
"-D__linux__=1",
6+
"-D__x86_64=1",
7+
"-D__x86_64__=1",
8+
"-D__PTRDIFF_TYPE__=long int",
9+
"-D__SIZE_TYPE__=long unsigned int",
10+
"-D__WCHAR_TYPE__=int"
11+
],
12+
"defaults_op": "merge"
13+
}

Extension/bin/linux.clang.x86.json

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
{
2-
"defaults": [
3-
"-D__building_module(x)=0",
4-
"-Dunix=1",
5-
"-D__unix__=1",
6-
"-D__linux__=1",
7-
"-D__i386=1",
8-
"-D__i386__=1",
9-
"-D__PTRDIFF_TYPE__=int",
10-
"-D__SIZE_TYPE__=unsigned int",
11-
"-D__WCHAR_TYPE__=long int"
12-
],
13-
"defaults_op": "merge"
14-
}
1+
{
2+
"defaults": [
3+
"-Dunix=1",
4+
"-D__unix__=1",
5+
"-D__linux__=1",
6+
"-D__i386=1",
7+
"-D__i386__=1",
8+
"-D__PTRDIFF_TYPE__=int",
9+
"-D__SIZE_TYPE__=unsigned int",
10+
"-D__WCHAR_TYPE__=long int"
11+
],
12+
"defaults_op": "merge"
13+
}

Extension/bin/macos.clang.arm.json

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
{
2-
"defaults": [
3-
"-D__building_module(x)=0",
4-
"-D__APPLE__=1",
5-
"-D__MACH__=1",
6-
"-D__arm__=1",
7-
"-D__ARM_32BIT_STATE=1",
8-
"-D__PTRDIFF_TYPE__=int",
9-
"-D__SIZE_TYPE__=unsigned int",
10-
"-D__WCHAR_TYPE__=long int"
11-
],
12-
"defaults_op": "merge"
13-
}
1+
{
2+
"defaults": [
3+
"-D__APPLE__=1",
4+
"-D__MACH__=1",
5+
"-D__arm__=1",
6+
"-D__ARM_32BIT_STATE=1",
7+
"-D__PTRDIFF_TYPE__=int",
8+
"-D__SIZE_TYPE__=unsigned int",
9+
"-D__WCHAR_TYPE__=long int"
10+
],
11+
"defaults_op": "merge"
12+
}

Extension/bin/macos.clang.arm64.json

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
{
2-
"defaults": [
3-
"-D__building_module(x)=0",
4-
"-D__APPLE__=1",
5-
"-D__MACH__=1",
6-
"-D__aarch64__=1",
7-
"-D__ARM_64BIT_STATE=1",
8-
"-D__PTRDIFF_TYPE__=long int",
9-
"-D__SIZE_TYPE__=long unsigned int",
10-
"-D__WCHAR_TYPE__=int"
11-
],
12-
"defaults_op": "merge"
13-
}
1+
{
2+
"defaults": [
3+
"-D__APPLE__=1",
4+
"-D__MACH__=1",
5+
"-D__aarch64__=1",
6+
"-D__ARM_64BIT_STATE=1",
7+
"-D__PTRDIFF_TYPE__=long int",
8+
"-D__SIZE_TYPE__=long unsigned int",
9+
"-D__WCHAR_TYPE__=int"
10+
],
11+
"defaults_op": "merge"
12+
}

Extension/bin/macos.clang.x64.json

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
{
2-
"defaults": [
3-
"-D__building_module(x)=0",
4-
"-D__APPLE__=1",
5-
"-D__MACH__=1",
6-
"-D__x86_64=1",
7-
"-D__x86_64__=1",
8-
"-D__PTRDIFF_TYPE__=long int",
9-
"-D__SIZE_TYPE__=long unsigned int",
10-
"-D__WCHAR_TYPE__=int"
11-
],
12-
"defaults_op": "merge"
13-
}
1+
{
2+
"defaults": [
3+
"-D__APPLE__=1",
4+
"-D__MACH__=1",
5+
"-D__x86_64=1",
6+
"-D__x86_64__=1",
7+
"-D__PTRDIFF_TYPE__=long int",
8+
"-D__SIZE_TYPE__=long unsigned int",
9+
"-D__WCHAR_TYPE__=int"
10+
],
11+
"defaults_op": "merge"
12+
}

Extension/bin/macos.clang.x86.json

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
{
2-
"defaults": [
3-
"-D__building_module(x)=0",
4-
"-D__APPLE__=1",
5-
"-D__MACH__=1",
6-
"-D__i386=1",
7-
"-D__i386__=1",
8-
"-D__PTRDIFF_TYPE__=int",
9-
"-D__SIZE_TYPE__=unsigned int",
10-
"-D__WCHAR_TYPE__=long int"
11-
],
12-
"defaults_op": "merge"
13-
}
1+
{
2+
"defaults": [
3+
"-D__APPLE__=1",
4+
"-D__MACH__=1",
5+
"-D__i386=1",
6+
"-D__i386__=1",
7+
"-D__PTRDIFF_TYPE__=int",
8+
"-D__SIZE_TYPE__=unsigned int",
9+
"-D__WCHAR_TYPE__=long int"
10+
],
11+
"defaults_op": "merge"
12+
}

Extension/bin/windows.clang.arm.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
{
2-
"defaults": [
3-
"-D__building_module(x)=0"
4-
],
5-
"defaults_op": "merge"
6-
}
1+
{
2+
"defaults": [
3+
],
4+
"defaults_op": "merge"
5+
}
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
{
2-
"defaults": [
3-
"-D__building_module(x)=0"
4-
],
5-
"defaults_op": "merge"
6-
}
1+
{
2+
"defaults": [
3+
],
4+
"defaults_op": "merge"
5+
}

Extension/bin/windows.clang.x64.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
{
2-
"defaults": [
3-
"-D__building_module(x)=0"
4-
],
5-
"defaults_op": "merge"
6-
}
1+
{
2+
"defaults": [
3+
],
4+
"defaults_op": "merge"
5+
}

Extension/bin/windows.clang.x86.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
{
2-
"defaults": [
3-
"-D__building_module(x)=0"
4-
],
5-
"defaults_op": "merge"
6-
}
1+
{
2+
"defaults": [
3+
],
4+
"defaults_op": "merge"
5+
}

0 commit comments

Comments
 (0)