-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
22 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From 67f54fde2b1683aae3800f7a86a4e507c1125be8 Mon Sep 17 00:00:00 2001 | ||
From 4bbbb640934aa653bcfec0335798b77a8935b815 Mon Sep 17 00:00:00 2001 | ||
From: Yureka <[email protected]> | ||
Date: Sat, 7 Aug 2021 09:16:46 +0200 | ||
Subject: [PATCH] emulate clang 'sysroot + /include' logic | ||
|
@@ -20,23 +20,23 @@ but it doesn't appear to work | |
1 file changed, 6 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/emcc.py b/emcc.py | ||
index 999314afc..0e23c066c 100755 | ||
index ba8d1b556..7d89644c5 100755 | ||
--- a/emcc.py | ||
+++ b/emcc.py | ||
@@ -759,7 +759,12 @@ def emsdk_ldflags(user_args): | ||
@@ -883,7 +883,12 @@ def parse_s_args(args): | ||
|
||
|
||
def emsdk_cflags(user_args): | ||
- cflags = ['--sysroot=' + shared.Cache.get_sysroot(absolute=True)] | ||
- cflags = ['--sysroot=' + cache.get_sysroot(absolute=True)] | ||
+ cflags = [ | ||
+ '--sysroot=' + shared.Cache.get_sysroot(absolute=True), | ||
+ '--sysroot=' + cache.get_sysroot(absolute=True), | ||
+ '-resource-dir=@resourceDir@', | ||
+ '-idirafter' + shared.Cache.get_sysroot(absolute=True) + os.path.join('/include'), | ||
+ '-idirafter' + cache.get_sysroot(absolute=True) + os.path.join('/include'), | ||
+ '-iwithsysroot' + os.path.join('/include','c++','v1') | ||
+ ] | ||
|
||
def array_contains_any_of(hay, needles): | ||
for n in needles: | ||
-- | ||
2.32.0 | ||
2.40.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters