7537 Commits

Author SHA1 Message Date
Andrew Kelley
a92be49851 Revert "Merge pull request #15317 from devnexen/darwin_rand_nativegen"
This reverts commit a11113097730693fb915114cec79df9cb4adcc93, reversing
changes made to 9f3f9fb40f605de2f2bdcd0ce7a396e06b8b8c0d.
2023-07-31 11:13:27 -07:00
Andrew Kelley
421022929a Revert "std.c: adding cpu affinity api for macOs (mainly x86_64)"
This reverts commit 4bfd37ddb48af4dbfd2e892aec7a90a822c8cbe7.
2023-07-31 11:12:19 -07:00
Andrew Kelley
614ae886db Revert "std.c: darwin add host_info based data."
This reverts commit ff59c4584041517a2ee07cccf923ef5460032d68.
2023-07-31 11:11:05 -07:00
Andrew Kelley
afca695b64 Revert "std.c: adding freebsd's kinfo_proc type."
This reverts commit 3dd0afe787e1cab4db41e685e67ce5594e92f7ef.
2023-07-31 11:10:56 -07:00
Andrew Kelley
f3adbe249b Revert "std.c: openbsd sigcontext/ucontext for arm64."
This reverts commit 1585ed637d101ed16adb6b9ebdfa465299bfdb13.
2023-07-31 11:10:40 -07:00
Andrew Kelley
8c7eb8c8da Revert "std.c: adding freebsd's domainset api"
This reverts commit e8f76b452bf86481069c2eeeb02d46161ea79a08.
2023-07-31 11:09:34 -07:00
Andrew Kelley
5d345b69ea Revert "std.fs: selfExePath haiku using constants instead"
This reverts commit e21739dd8caf7d6a9aefe68c37eddb6406bcb810.
2023-07-31 11:09:28 -07:00
Andrew Kelley
a048ddaf91 Revert "std.c: adding freebsd's domainset_t bitset"
This reverts commit 10a7cf58c1530e004e5ccb1a81f02aa86ab51dd1.
2023-07-31 11:09:16 -07:00
Andrew Kelley
ac7be71d8e Revert "std.c: add freebsd's kinfo_vmobject"
This reverts commit 52606572309f843c043123c1f2771829e45b4b5d.
2023-07-31 11:05:38 -07:00
Andrew Kelley
6d7c6f4da7 Revert "std.c: adding freebsd's ioctl base operands."
This reverts commit cd7e2bf57a4da6965df9a2d8662a9b95f63cf595.
2023-07-31 11:05:21 -07:00
Andrew Kelley
f3fa47a984 Revert "std.c: darwin adding more host_info api data"
This reverts commit 20cc69318f4661795aaacdc55bcaabb5f2e6484e.
2023-07-31 11:04:37 -07:00
Andrew Kelley
942848de58 Revert "std.c: adding basic darwin's host_statistics data."
This reverts commit 6547d233125199b16644c0f7504793490af67926.
2023-07-31 11:04:04 -07:00
Andrew Kelley
0043cdbeca Revert "std.c: further darwin's host statistics data"
This reverts commit cceadf52baff2590c1b38c469b1177918183dfe8.
2023-07-31 11:03:52 -07:00
Andrew Kelley
8678d445c2 Revert "linux adding some NUMA support"
This reverts commit 6f418c11e1ad1150fbdb002cfe1be92bda4e93cb.
2023-07-31 11:02:43 -07:00
Andrew Kelley
182bec8771 Revert "std.os: adding linux's sched_setaffinity and its wrapper"
This reverts commit c7bf8bab38f8b89c1371eedb9229e00a29b5ca5b.
2023-07-31 11:01:42 -07:00
Andrew Kelley
86a5edca62 Revert "std.os: implementing sched_setaffinity wrapper for freebsd"
This reverts commit 05268bb9677ef0545cca6c788169b2707842dc8d.
2023-07-31 10:58:03 -07:00
Andrew Kelley
e1fdd21f0e Revert "std.c: add rfork for freebsd"
This reverts commit 2952fb97588fa2eb711bf84b479e959b60542192.
2023-07-31 10:57:35 -07:00
Andrew Kelley
a208c59a25 Revert "std.c: add netbsd's accept_filter_data for ACCEPT_FILTER sock opt."
This reverts commit b677b3627818edc24828f36f8269a3c3843703a1.
2023-07-31 10:57:22 -07:00
Andrew Kelley
b7e37f9ddc Revert "std.c: add ptrace for freebsd support."
This reverts commit b754068fbc7492962953068d31386d4c04e37ae5.
2023-07-31 10:57:12 -07:00
Andrew Kelley
faa6daef99 Revert "std.c: darwin's *copyfile api update."
This reverts commit 40e8c2243c139dc499298645a2b387e30ae09cba.
2023-07-31 10:57:06 -07:00
Andrew Kelley
833af381f0 Revert "std.os: add linux timer api"
This reverts commit b9d2e0e308794463db1b1acf04d76778c470a070.
2023-07-31 10:56:55 -07:00
Andrew Kelley
43162efbf4 Revert "std.c: adding ptrace for netbsd."
This reverts commit ccfb0d408d5ffb40f77a8ad1fb57f0bb854583ad.
2023-07-31 10:55:03 -07:00
Andrew Kelley
aff65e74e1 Revert "std.os: gethostname non libc linking using uname like linux"
This reverts commit f8991ba3d48a23b7c73079a017d69d3ead23d398.
2023-07-31 10:54:51 -07:00
Andrew Kelley
9d798ead63 Revert "std.c: fix freebsd's CPU_ISSET call"
This reverts commit 768965788ecb9a0a70b4363f9472471bb0bbe5ec.
2023-07-31 10:54:45 -07:00
Andrew Kelley
1b9ffa0824 Revert "std.Thread: refining stack size from platform minimum, changes more targetted towards platform like Linux/musl (#15791)"
This reverts commit 41502c6aa53a3da31b276c23c4db74db7d04796b.
2023-07-31 10:54:35 -07:00
Andrew Kelley
ba3b352891 Revert "std.os: fix uname usage."
This reverts commit 138f1253deb48434af707ec5e9124e889520be08.
2023-07-31 10:52:12 -07:00
Andrew Kelley
9f20d01cfb Revert "std.c: exposing timer api"
This reverts commit 54ea0bbcdddc9e13ed98415d8883f03d59392509.
2023-07-31 10:51:44 -07:00
Andrew Kelley
8e9a33b82c Revert "Merge pull request #15867 from devnexen/haiku_malloc_usable_size"
This reverts commit 3ef91233caf2c637797d84527a4e78f870e4b4b9, reversing
changes made to 2839e35d1c06ca5b6bda1f20ae870f2b2fbbbfb1.
2023-07-31 10:50:48 -07:00
Andrew Kelley
dad7eea8d9 Revert "std.c: update netbsd/openbsd mman constants"
This reverts commit 64f0059cd33b571d6cf91df45f4cb2e0af9c0742.
2023-07-31 10:50:39 -07:00
Andrew Kelley
643c986838 Revert "std.c: freebsd fix typo for PROC.PROCCTL_MD_MIN constant."
This reverts commit e9dd0a22f0d93683f97db747be53d8d2d21c3543.
2023-07-31 10:50:27 -07:00
Andrew Kelley
004711310a Revert "std.c: fix host_basic_info definition for darwin."
This reverts commit ea1d64dae4bb34d62e9cfddf7e3da493ed8063e9.
2023-07-31 10:50:22 -07:00
Andrew Kelley
381704dd0e Revert "std.c: fix few capcisum api calls, following-up on 6ae19fa."
This reverts commit 72dd22f262353fa7d37c89c7d163e97a162abb9b.
2023-07-31 10:50:16 -07:00
Andrew Kelley
88b4ee172f Revert "std.c: few freebsd's kinfo api fixes."
This reverts commit d07149c56d202c3503c4f5505e8b003b3e161145.
2023-07-31 10:50:09 -07:00
Andrew Kelley
95e2605d30 Revert "std.c: msghdr* struct removing prefixes to match linux."
This reverts commit 8f14431bc883898aaf78cc985e2d90716187e882.
2023-07-31 10:49:57 -07:00
Andrew Kelley
66d5f391ea Revert "std.c: fix haiku's find_path signature."
This reverts commit 9e0ac4449a18677ba695f7a75342cbdb049aad52.
2023-07-31 10:49:45 -07:00
GethDW
33e4cbb20f std.Build.Step.WriteFile: fix call to nonexistent function 2023-07-31 14:23:57 +02:00
Andrew Kelley
25a9487caa std.Build.LazyPath: fix resolution of cwd_relative
The callsites of getPath rely on the result being absolute so that they
can pass the path to a child process with the cwd set to the build root.
2023-07-30 18:42:08 -07:00
Andrew Kelley
bdbd617237 std.Build.Step.InstallArtifact: disable emit-h
This branch was not intended to introduce new test coverage on the
emit-h feature.

See #9698
2023-07-30 17:22:54 -07:00
Andrew Kelley
38840e2e58 build system: follow-up enhancements regarding LazyPath
* introduce LazyPath.cwd_relative variant and use it for --zig-lib-dir. closes #12685
* move overrideZigLibDir and setMainPkgPath to options fields set once
  and then never mutated.
* avoid introducing Build/util.zig
* use doc comments for deprecation notices so that they show up in
  generated documentation.
* introduce InstallArtifact.Options, accept it as a parameter to
  addInstallArtifact, and move override_dest_dir into it. Instead of
  configuring the installation via Compile step, configure the
  installation via the InstallArtifact step. In retrospect this is
  obvious.
* remove calls to pushInstalledFile in InstallArtifact. See #14943
* rewrite InstallArtifact to not incorrectly observe whether a Compile
  step has any generated outputs. InstallArtifact is meant to trigger
  output generation.
* fix child process evaluation code handling of `-fno-emit-bin`.
* don't store out_h_filename, out_ll_filename, etc., pointlessly. these
  are all just simple extensions appended to the root name.
* make emit_directory optional. It's possible to have nothing outputted,
  for example, if you're just type-checking.
* avoid passing -femit-foo/-fno-emit-foo when it is the default
* rename ConfigHeader.getTemplate to getOutput
* deprecate addOptionArtifact
* update the random number seed of Options step caching.
* avoid using `inline for` pointlessly
* avoid using `override_Dest_dir` pointlessly
* avoid emitting an executable pointlessly in test cases

Removes forceBuild and forceEmit. Let's consider these additions separately.
Nearly all of the usage sites were suspicious.
2023-07-30 11:19:32 -07:00
Felix "xq" Queißner
f8386de7ae Tries to fix Windows DLL linking. 2023-07-30 11:18:50 -07:00
Felix "xq" Queißner
35d0a49db9 Introduces Compile.forceBuild() and Compile.forceEmit(…) 2023-07-30 11:18:50 -07:00
Felix (xq) Queißner
5c01818410 Introduces Compile.getEmittedX() functions, drops Compile.emit_X. Resolves #14971 2023-07-30 11:18:50 -07:00
Felix (xq) Queißner
ce95a3b153 Build.zig rename orgy (aka: #16353). Renames FileSource to LazyPath and removes functions that take literal paths instead of LazyPath. 2023-07-30 11:18:50 -07:00
Andrew Kelley
b8dda2dbe1
Merge pull request #16594 from squeek502/windows-sdk-com
windows_sdk.zig: Reinstate COM ISetupEnumInstances logic
2023-07-29 09:47:39 -07:00
Jacob Young
e8e9a4ac66 Build: use optionals again
Closes #14952
2023-07-28 21:43:07 -07:00
Ryan Liptak
8579f720b0 windows_sdk.zig: Reinstate COM ISetupEnumInstances logic
The C++ version of this code used this logic, and it turns out it is able to find some setups that the current registry/Vs7 methods cannot.

For example, if only the "Build Tools for Visual Studio" are installed but not Visual Studio itself, then only the ISetupEnumInstances method seems to find it.

Follow up to #15657, fixes a regression caused by moving from the C++ version to the Zig version
2023-07-28 19:19:32 -07:00
Zachary Raineri
423c1221f9 std.target | Remove comment referencing closed proposal
Removes a comment referencing #425 which has been closed
2023-07-28 19:02:48 -07:00
Zachary Raineri
6604952ec3 std.start | Remove unused import
Removes the unused import tlcsprng
2023-07-28 19:01:05 -07:00
Jakub Konka
20f4216af5 macos: fix parsing of SDK version string into std.SemanticVersion 2023-07-28 21:13:56 +02:00
techatrix
7e25fb4a43 add bound check on for and while nodes 2023-07-28 00:20:53 -07:00