forked from pool/element-desktop
Dominik Heidler
e994532924
OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-desktop?expand=0&rev=77
25 lines
1000 B
Diff
25 lines
1000 B
Diff
--- foo/node_modules/node-gyp/gyp/pylib/gyp/common.py 2024-09-26 12:47:30.529999000 +0200
|
|
+++ ./common.py 2024-09-26 22:52:44.247875969 +0200
|
|
@@ -432,13 +432,17 @@
|
|
def replace_sep(s):
|
|
return s.replace(os.sep, "/") if os.sep != "/" else s
|
|
|
|
- if CC := os.environ.get("CC_target") or os.environ.get("CC"):
|
|
+ CC = os.environ.get("CC_target") or os.environ.get("CC")
|
|
+ CXX = os.environ.get("CXX_target") or os.environ.get("CXX")
|
|
+ CFLAGS = os.environ.get("CFLAGS")
|
|
+ CXXFLAGS = os.environ.get("CXXFLAGS")
|
|
+ if CC:
|
|
cmd += shlex.split(replace_sep(CC))
|
|
- if CFLAGS := os.environ.get("CFLAGS"):
|
|
+ if CFLAGS:
|
|
cmd += shlex.split(replace_sep(CFLAGS))
|
|
- elif CXX := os.environ.get("CXX_target") or os.environ.get("CXX"):
|
|
+ elif CXX:
|
|
cmd += shlex.split(replace_sep(CXX))
|
|
- if CXXFLAGS := os.environ.get("CXXFLAGS"):
|
|
+ if CXXFLAGS:
|
|
cmd += shlex.split(replace_sep(CXXFLAGS))
|
|
else:
|
|
return {}
|